Toggle
A button that switches between on and off.
components/ui/toggle.tsx
Preview
Code
Installation
npx betterone-ds add toggleProps
| Prop | Type | Default |
|---|---|---|
| variant | "default" | "outline" | "default" |
| size | "sm" | "default" | "lg" | "default" |
| isSelected | boolean | false |
Accessibility
- Icon-only toggles need an aria-label.

