Toggle Group

A set of toggles where one or many can be on.

components/ui/toggle-group.tsx

Installation

npx betterone-ds add toggle-group

Props

PropTypeDefault
selectionMode"single" | "multiple""single"
variant"default" | "outline""default"
orientation"horizontal" | "vertical""horizontal"

Accessibility

  • Arrow keys move focus within the group.