Toggle
A two-state button that can be on or off.
Default
Variants
Sizes
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "outline" | "default" | Visual style. |
| size | "sm" | "default" | "lg" | "default" | Size of the toggle. |
| pressed | boolean | — | Controlled pressed state. |
| onPressedChange | (pressed: boolean) => void | — | Callback when pressed state changes. |