◇
ToggleGroup
2 partsAnatomy
Import the parts and compose them. Each part forwards attributes to its underlying element.
vue
import {
ToggleGroupItem,
ToggleGroupRoot,
} from '@robonen/primitives/toggle-group';
<ToggleGroupItem>
<ToggleGroupRoot />
</ToggleGroupItem>API Reference
ToggleGroupItem
Item| Prop | Type | Description |
|---|---|---|
value | string | — |
disabled? | boolean | — |
ToggleGroupRoot
Root| Prop | Type | Description |
|---|---|---|
type? | ToggleGroupType | — |
modelValue? | string | string[] | — |
defaultValue? | string | string[] | — |
disabled? | boolean | — |
orientation? | 'horizontal' | 'vertical' | — |
dir? | RovingDirection | — |
loop? | boolean | — |
rovingFocus? | boolean | — |