Switch
Toggle switch component.
Import
tsx
import { ZSwitch } from "@zurto/ui";Usage
tsx
<ZSwitch label="Enable notifications" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | Toggle state |
onChange | (checked: boolean) => void | – | Change handler |
size | 'sm' | 'md' | 'lg' | 'md' | Switch size |
label | string | – | Label text |