A compact single or multiple selection control.
ToggleGroup defines how EnterUI handles a compact single or multiple selection control, including default structure, accessible states, and token-driven styling.
Selected state uses surface contrast instead of a heavy brand fill.
<ToggleGroup type="single" defaultValue="list" aria-label="View mode">
<ToggleGroupItem value="list">List</ToggleGroupItem>
<ToggleGroupItem value="grid">Grid</ToggleGroupItem>
<ToggleGroupItem value="chart">Chart</ToggleGroupItem>
</ToggleGroup>import { ToggleGroup, ToggleGroupItem } from "@froggdesign/enter-ui-react";Use multiple mode for independent toggles.
ToggleGroup uses Radix toggle group semantics and keyboard behavior. Provide an accessible label for the group.
ToggleGroup accepts Radix root props including type, value, defaultValue, and orientation.ToggleGroupItem requires value.Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.