childrenRequired | React.ReactNode | Not set | ToggleGroup.Item components |
defaultValue | string | string[] | undefined | Not set | Initial value (uncontrolled): a string, or a string array with multiple |
disabled | boolean | undefined | false | Disable every option |
fullWidth | boolean | undefined | false | Stretch the track to its container; segments share the width |
Item.childrenRequired | React.ReactNode | Not set | Item content: a label, a glyph, or both. An icon-only item needs
`aria-label`. |
Item.disabled | boolean | undefined | Not set | Disabled state |
Item.valueRequired | string | Not set | Value for this item |
multiple | boolean | undefined | false | Let several options stay pressed; the value becomes a string array |
onValueChange | ((value: string) => void) | ((value: string[]) => void) | undefined | Not set | Called with the next value: (value: string) => void, or (value: string[]) => void with multiple. A chosen segment stays chosen when pressed again in single mode. |
size | "xs" | "sm" | "md" | "lg" | undefinedxssmmdlg | "md" | Size on the one track: xs 24, sm 28, md 32, lg 40. Defaults to the nearest ComponentDefaultsProvider controlSize. |
value | string | string[] | undefined | Not set | Chosen value (controlled): a string, or a string array with multiple |