Controls
Switch
An iOS-style toggle for settings that apply immediately.
npx shadcn-svelte@latest add http://localhost:5173/r/switch.json Sizes and states
The thumb stretches while it travels and settles on arrival, and stretches toward where it's going while you hold it — like iOS. Pressed and focus rows are pinned.
light
Default
Small
Pressed
Focus
Invalid
Disabled
dark
Default
Small
Pressed
Focus
Invalid
Disabled
Settings list
Switches suit settings that apply immediately. The whole row's label toggles it.
light
Join known networks automatically.
Reduce background activity.
Turn off all wireless radios.
dark
Join known networks automatically.
Reduce background activity.
Turn off all wireless radios.