Components/Inputs
Switch
Switches turn a single setting on or off, and the change takes effect the moment people flip it
Playground
Playground
Pick a variant, then click the preview to flip it
Sizes
Sizes
Medium for settings pages and forms, Small for dense lists and table rows
States
States
On fills the track with brand blue and slides the knob right. Disabled keeps the knob position and greys it out
With label
With label
Switch-label adds a label, an optional description, badge and link button. Position sets which side the switch sits on
Usage
When to use
Use when
- A setting turns on or off and applies right away, with no Save button
- The two states are clear opposites, like on and off or show and hide
- People scan a list of settings and flip the ones they need
Avoid when
- The change only applies after people submit a form, use a Checkbox
- People pick one of several options, use a Radio Group
- The action can’t be undone or needs a confirmation, use a Button
Guidance
Do and don’t
Order notificationsBadgeShort helper text that explains the optionLink Button
Name the setting in the label and let the switch show its state
Subscribe to newsletterBadgeShort helper text that explains the optionLink ButtonSave changes
Don’t use a switch when the change waits for a Save button, use a Checkbox
Specs
Tokens and specs
PropertyTokenValue
Track size—36 × 20 / 28 × 16
Track padding2 px
Knob size—16 / 12 px
Corner radius999 px
Track, off#EBEBEB
Track, on#1868D0
Knob#FFFFFF
Disabled knob#D1D1D1
Knob motion—160 ms, cubic-bezier(.2, 0, 0, 1)
Label width—360 px
Control to text12 px
Label styleInter Medium 14/20
Description styleInter Regular 12/16
Link button styleInter Medium 12/16