API and Development
Toolbar renders a compact role="toolbar" flex row with alt background and border. Set floating with toolbarPosition and optional inset for overlay toolbars; visible toggles display with motion when floating. exclusiveGroup coordinates dismissal across multiple toolbars via a document event. ToolbarDivider separates icon buttons; ToolbarGroup re-exports ButtonGroup for merged controls.
Name | Type | Default | Description |
|---|---|---|---|
|
| — | Controls cross-axis alignment of flex children. Maps to CSS |
|
| — | Removes bottom border-radius, making the box flush against the bottom edge. |
|
| — | Removes left border-radius, making the box flush against the left edge. |
|
| — | Removes right border-radius, making the box flush against the right edge. |
|
| — | Removes top border-radius, making the box flush against the top edge. |
|
| — | Applies a semantic background color token to the box. |
|
| — | Sets the initial main size of the flex item. Maps to CSS |
|
| — | Applies a border style to all sides of the box. |
|
| — | Applies a border style to only the bottom side. |
|
| — | Applies a border style to only the left side. |
|
| — | Sets the border radius using a design token. |
|
| — | Applies a border style to only the right side. |
|
| — | Applies a border style to only the top side. |
|
| — | Additional CSS class name(s) to apply to the box element. |
|
| — | Enables CSS container queries by setting the |
|
| — | — |
|
| — | Applies a box-shadow elevation level for depth/layering. |
|
| — | Group name for mutually exclusive toolbars. When one becomes visible, others in the same group are dismissed. |
|
| — | Controls whether flex items wrap onto multiple lines. Maps to CSS |
|
|
| When true, positions the toolbar as a floating overlay with animation. |
|
| — | Spacing between child elements. Maps to CSS |
|
| — | When true, sets |
|
| — | CSS offset from the positioned edge when floating. Accepts a number (pixels) or CSS string. |
|
| — | Controls main-axis alignment of flex children. Maps to CSS |
|
| — | Outer spacing around the box. Accepts a spacing token. |
|
| — | Click handler forwarded to the underlying element (along with other DOM props in |
|
| — | Callback fired when another toolbar in the same |
|
| — | Keydown handler forwarded to the underlying element. Useful for div-based controls that need to respond to Enter/Space like a button. |
|
| — | Pointer down handler forwarded to the underlying element. |
|
| — | Controls overflow behavior for content that exceeds the box dimensions. |
|
| — | Inner spacing within the box. Accepts a spacing token. |
|
| — | Ref forwarded to the root |
|
| — | When true, sets |
|
| — | Inline styles applied directly to the box element. |
|
|
| Placement of the toolbar when |
|
|
| Controls visibility of the toolbar. When false, the toolbar is hidden (animated out if floating). |
|
| — | Controls the CSS |
|
| — | Sets the CSS |
Interactive examples and edge cases for this component are in Storybook.
Name | Type | Default | Description |
|---|---|---|---|
|
|
| Divider axis. |