Switch
Preview
Off / On
With Labels
Dark mode
Notifications
Disabled
Disabled
Disabled (on)
Usage
tsx
import { Switch } from "@semajsx/ui/components/switch";
<Switch label="Dark mode" />
<Switch label="Notifications" checked />
<Switch disabled />Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Label text |
checked | boolean | false | Checked state |
disabled | boolean | false | Disabled state |
name | string | — | HTML name attribute |