- Components
- Forms
Switch
Pill switch; the thumb slides over 200ms.
Installation#
npx shadcn add @ortaui/switchExamples#
States#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| checked / defaultChecked | boolean | - | Controlled or uncontrolled state. |
| onCheckedChange | (checked: boolean) => void | - | Called when toggled. |