Switch
Animated toggle for immediate-apply settings. Built on role="switch" per ARIA 1.2 — responds to Space/Enter and ArrowLeft/ArrowRight for explicit on/off.
Source
src/components/ui/switch.tsxControlled
Bind checked + onCheckedChange. Reads out as a switch to assistive tech.
State: on
With description + small size
Add a muted description for longer settings rows, and switch to the compact 18px track.
Disabled states
Both on and off are inert — useful for feature-flagged rows.