Switch
Toggle switch with neon active state.
Import
import { Switch } from "neoterm-ui";Usage
<Switch checked={enabled} onCheckedChange={setEnabled} label="Dark mode" />
<Switch checked={true} size="sm" disabled />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| checked | boolean | — | On/off state. |
| onCheckedChange | (checked: boolean) => void | — | Toggle callback. |
| size | "sm" | "md" | "md" | Switch size. |
| label | string | — | Label text. |
| disabled | boolean | — | Disable the switch. |