Inputs
Toggle
Turn a setting on or off when the change takes effect immediately.
Anatomy
- Track
- Thumb
- Setting label
Configuration
Switch states
The setting starts on and can be changed immediately.
The setting starts off and can be turned on.
Use this state when the setting is unavailable.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-foreground | — | Switch label |
--cc-surface-muted | — | Off track | |
--cc-primary | — | On track | |
--cc-primary-foreground | — | Thumb in both positions | |
--cc-focus-ring | — | Keyboard focus ring |