Skip to content

Switch

Status: Disabled
Terminal window
npx skeci-ui add switch
import { Switch } from '@/components/ui/switch';
<Switch
label="Airplane Mode"
checked={enabled}
onChange={(checked) => setEnabled(checked)}
/>
PropTypeDefaultDescription
checkedbooleanfalseThe controlled checked state of the switch.
onChange(checked: boolean) => voidCallback fired when the state changes.
labelstringThe label text displayed next to the switch.
disabledbooleanfalseWhether the switch is non-interactive.