A semantic group for related toolbar actions.
ToolbarGroup defines how EnterUI handles a semantic group for related toolbar actions, including default structure, accessible states, and token-driven styling.
Use groups to clarify relationships inside dense toolbars.
<Toolbar aria-label="Document toolbar">
<ToolbarGroup>
<ToolbarButton>Undo</ToolbarButton>
<ToolbarButton>Redo</ToolbarButton>
</ToolbarGroup>
<ToolbarGroup compact>
<ToolbarButton active>B</ToolbarButton>
<ToolbarButton>I</ToolbarButton>
</ToolbarGroup>
</Toolbar>import { ToolbarGroup } from "@froggdesign/enter-ui-react";ToolbarGroup renders role="group". Add aria-label if the group needs a specific screen-reader name.
compact reduces spacing between grouped actions.className.Uses .eui-toolbar__group classes and subtle dividers between groups.