Toggle

A button that switches between on and off.

components/ui/toggle.tsx

Installation

npx betterone-ds add toggle

Props

PropTypeDefault
variant"default" | "outline""default"
size"sm" | "default" | "lg""default"
isSelectedbooleanfalse

Accessibility

  • Icon-only toggles need an aria-label.