Ship-It Designv0.0.20

GitHub

Switch

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Loading…

On#

Loading…

Sizes#

Loading…

Disabled#

Loading…

Props#

Props for Switch
PropTypeDefaultDescription
labelReactNodeOptional inline label rendered to the right of the switch.
sizeenummdVisual size. Default `md`.
densityenumcomfortable`'comfortable'` (default) renders the desktop switch. `'touch'` swaps to the mobile track/thumb dimensions (50×30) for thumb-friendly toggling.