components
Switch
An instant on/off toggle built on Radix Switch, for settings that apply immediately. The track fills with the primary tone when on. The thumb animates with a calm ease-out and respects reduced motion.
Basic
States
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | none | Controlled state. |
| defaultChecked | boolean | none | Uncontrolled initial state. |
| onCheckedChange | (c: boolean) => void | none | Change handler. |
| label | ReactNode | none | Clickable label beside the track. |
| disabled | boolean | false | Disable the control. |