Components
ToggleGroup
A literal group of {@link Toggle}s: several two-state pressable buttons that
share one selection, laid out joined (a seamless segmented row),
separated, or wrapped. Built on Base UI ToggleGroup - by default one
item is pressed at a time (radio-like), multiple makes it checkbox-like;
value is always an array. The Toggles inside take
size / radius / variant from the group through context.
Usage
Best practices
An always-one-selected mode switcher is
SegmentedControl, notToggleGroup- reach here for multi-select toolbars and deselectable choice chips.layout="wrap"+required(withoutmultiple) is the wizard choice-chip recipe.Put plain
Toggles inside, each with avalue, as Base UI does.Icon-only toggles need an
aria-label(a dev warning fires otherwise).