Toggle
View in FigmaA switch control for toggling between two states like on/off or enabled/disabled.
FormsImport
import { Toggle } from "@/components/ui"API
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "sm" | "md" | "lg" | "md" | Switch dimensions. |
| checked | boolean | — | Controlled checked state. |
| onCheckedChange | (checked: boolean) => void | — | Callback when toggled. |
| label | string | — | Label text next to the toggle. |