Switch
A setting that applies straight away.
Live preview · click to try it
Variants
3 named variants. Layer names match the names below.
LargeSwitch / Large
SmallSwitch / Small
With LabelSwitch / With Label
States
Switch / Off
Switch / On
Switch / Focus
Switch / Disabled
Usage
Do
- Theme, billing period, show or hide.
Don't
- Choices that need a Submit.
Properties
| Property | Type or options | Default |
|---|---|---|
| Variant | Large · Small · With Label | With Label |
| Label | String | Dark theme |
| On | Boolean | Off |
Styles it uses
Surface/Tray FloorAccent/AcidLine/StrongInk/SecondaryState/Focus
Text: Label · Body
Accessibility
- Keyboard reachable with a visible 3px State/Focus ring.
- Interactive parts use real buttons and links with accessible names.