Back to SwitchGroup
SwitchGroup

Options API

Privacy settings with four independent toggles.

Let teammates find you by name.

Display when you were last active.

Help improve the product with anonymous data.

Occasional emails from trusted partners.

Toggle each setting on or off independently.

API

PropTypeDefaultDescription
options*{ value: string; text: string; disabled?: boolean; helpText?: React.ReactNode }[]Multi-toggle option list.
value / defaultValuestring[]Controlled / uncontrolled enabled values.
onValueChange(value: string[]) => voidFires when the enabled set changes.
labelReact.ReactNodeTop field label.
helpTextReact.ReactNodeGroup-level help text.
orientation"vertical" | "horizontal"verticalStack options vertically or wrap horizontally.
controlPosition"start" | "end"endInline-start/end placement for each option.
View full API on SwitchGroup