children | ReactNode | - | The toggles. |
| The toggles. |
label | string | - | A caption above the group, wired to it as its accessible name. |
| A caption above the group, wired to it as its accessible name. |
orientation | horizontal | vertical | horizontal | Stacks the toggles and switches the arrow keys that move focus. |
| Stacks the toggles and switches the arrow keys that move focus. |
multiple | boolean | false | |
|
value | string[] | - | |
|
defaultValue | string[] | - | The pressed toggles on first render, uncontrolled. |
| The pressed toggles on first render, uncontrolled. |
onValueChange | (value: string[]) => void | - | Called with the pressed values whenever they change. |
| Called with the pressed values whenever they change. |
shape | none | rounded | pill | rounded | |
|
disabled | boolean | false | Ignores interaction on every toggle in the group. |
| Ignores interaction on every toggle in the group. |
animated | boolean | true | |
|
className | string | - | Merged with the group's own classes, so a utility you pass wins. |
| Merged with the group's own classes, so a utility you pass wins. |