Switch
Turns one setting on or off immediately.
Playground
Variants and states
| Property | Options | Notes |
|---|---|---|
| checked | true / false | Takes effect immediately. |
| disabled | true / false | Say why, unless the setting can never apply. |
| motion | standard timing | The thumb, the track, and the disabled state use the standard timing and easing. |
Accessibility
- The switch has a label.
- The state is exposed with the switch role, not color.