When to use
Use a switch for binary choices, toggling settings on/off and quick and simple user actions.
Anatomy
- Toggle
- Label
Variations
- Switch in small size
- Switch in large size
- Switch with a clear label indicating the state
- Custom switch in light mode
- Custom switch in dark mode
States
- Enabled
- Hover
- Focused
- Error
- Disabled