A compact button for use inside Toolbar and dense product controls.
ToolbarButton defines how EnterUI handles a compact button for use inside toolbar and dense product controls, including default structure, accessible states, and token-driven styling.
ToolbarButton supports active, ghost, and danger states.
<Toolbar aria-label="Formatting toolbar">
<ToolbarGroup>
<ToolbarButton active>B</ToolbarButton>
<ToolbarButton>I</ToolbarButton>
<ToolbarButton variant="ghost">Code</ToolbarButton>
<ToolbarButton variant="danger">Clear</ToolbarButton>
</ToolbarGroup>
</Toolbar>import { ToolbarButton } from "@froggdesign/enter-ui-react";ToolbarButton renders a native button. The active prop maps to aria-pressed. Provide an aria-label for icon-only content.
active marks the button as pressed.variant: default, ghost, or danger.size: sm or md.className.Uses .eui-toolbar-button classes and compact token-driven spacing.