Forms · 5 parts · 5 states · Basic

Switch

Turns a setting on or off, with immediate effect.

01Anatomy

NotificationsEmail when someone replies.

5 parts. Select a number or a name to see what each part does.

01 · Label

Names the setting, not the action. It doesn’t change with the state.

Required
Yes
Recommended
“Notifications”, not “Turn notifications on”.

02 · Description

A second line: what changes when it is on.

Required
No

03 · Track

The rail that shows on or off through fill and position.

Required
Yes

04 · Thumb

The knob. Its position is the state: right means on, in left to right languages.

Required
Yes

05 · State icon

A tick or a cross in the thumb, so the state doesn’t depend on colour.

Required
No

02Structure

  • Switchcomponent setauto layouthorizontal
  • Textauto layoutvertical
  • Labeltext
  • Descriptiontextboolean
  • Controlframe52 × 32
  • Trackrectangleradius full
  • Thumbellipse
  • Iconinstanceboolean
Structure
PropertyTypeValues
OnBooleantruefalse
StateVariantDefaultHoverFocusDisabled
SizeVariantSmallMedium
Label positionVariantLeadingTrailing
IconBooleantruefalse

Put the thumb in auto layout with the track and switch alignment from left to right for On: smart animate does the slide.

03States

OffThumb at the start, neutral track.
OnThumb at the end, filled track. The setting is active now.
HoverThe track or the thumb gets a bit stronger.
FocusA ring around the track.
DisabledCan’t be changed, often because of another setting. Say which.

Some systems add a brief loading state while the change is saved. Varies by design system.

04Variants

Label firstSwitch at the end of the row. Common in settings lists.
Switch firstSwitch before the label, like a checkbox. Seen in some forms and dense panels.
With iconsA tick or a cross in the thumb.
SmallFor dense panels. Keep the target large.

There is no single correct anatomy: names, variants and properties differ from one design system to another. These are common structural models distilled from established design systems and accessibility guidance.

Fuori Frame

Proven methods for designing interfaces with AI. Every two weeks, in Italian.

Subscribe