[material-next][Switch] Add `Switch` component
Open
Nobody has claimed this yet.
design: material you
on hold
scope: switch
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
This issue is to track the work for adding the Switch component to @mui/material-next, moving forward the Material You effort (https://github.com/mui/material-ui/issues/29345)
Material You Swicth specification: https://m3.material.io/components/switch/overview
Migration Guide steps
- Copy component files from material (v5) to material-next: https://github.com/mui/material-ui/pull/39887
-
Remove deprecated components and componentsProps props:Skipped, no props to remove - Drop support for ThemeProvider in favor of CssVarsProvider: https://github.com/mui/material-ui/pull/40442
- Migrate component to Typescript: https://github.com/mui/material-ui/pull/39894
- Refactor component to use Base UI hooks:
useSwitch&useSlotProps: https://github.com/mui/material-ui/pull/40442 - Implement Material You design specs: https://github.com/mui/material-ui/pull/40442
- Add component playground to v5 docs: https://github.com/mui/material-ui/pull/40442
Note: This comment will be updated to show the progress and list possible issues.
@DiegoAndai
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.