Switch
Preview
Section titled “Preview”Status: Disabled
Installation
Section titled “Installation”npx skeci-ui add switchimport { Switch } from '@/components/ui/switch';
<Switch label="Airplane Mode" checked={enabled} onChange={(checked) => setEnabled(checked)}/>Variants
Section titled “Variants”| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | The controlled checked state of the switch. |
onChange | (checked: boolean) => void | — | Callback fired when the state changes. |
label | string | — | The label text displayed next to the switch. |
disabled | boolean | false | Whether the switch is non-interactive. |