ToggleGroup
import * as ToggleGroup from '@dxos/react-ui/ToggleGroup';A toggle group is a set of buttons that toggle. ToggleGroup.Root requires type:
type='single'lets one item be on at a time.type='multiple'lets any number be on.
Arrow keys move between the items.
| Part | What it is |
|---|---|
ToggleGroup.Root |
The root, which holds which items are on |
ToggleGroup.Item |
One toggle |