ToggleGroup
Independent single or multiple pressed-value selection with roving focus.
Ordinary demos on this page explicitly use Shadcn Rhea, with matching examples. This does not change public compatibility defaults or imply complete browser, native-host or visual acceptance. Neutral Surface/Text atoms retain their own public semantics; the consumer composition supplies the family presentation theme.
Independent single or multiple pressed-value selection with roving focus.
value/defaultValue are arrays. multiple=false keeps at most one value; clicking it again clears selection. Controlled valueChange requests never mutate the owner. Disabled, readOnly and duplicate-valued items do not commit. Arrow navigation changes focus without selecting.
Parts: Root, Item.
Draft source; native/GPUI, compiler, packed consumer, screenshots and full independent acceptance remain pending.
Toggle Group is workspace source. There is no public proto-ui add target. Passing value selects controlled mode.
| Prop | Type | Default |
|---|---|---|
defaultValue | readonly string[] | [] |
multiple | boolean | false |
disabled | boolean | false |
readOnly | boolean | false |
orientation | 'horizontal' 'vertical' | horizontal |
loop | boolean | true |
a11yLabel | string | '' |
These props belong to Root. Item requires value.