1 viewer
Component · Input
Toolbar
cre8.primitive.toolbarRow of commands in labelled groups, with spacers that push later groups to the far edge. Built by ToolbarBuilder from bare elements.
- Category
- Input
- Slots
- 3
- States
- 0
- Writer
- Legacy
Preview
<Section
aria-label="Document"
bare={true}
className="cre8-toolbar"
element="div"
role="toolbar"
>
<Section
aria-label="File"
bare={true}
className="cre8-toolbar__group"
element="div"
role="group"
>
<Action intent="primary" label="Save" />
<Action intent="ghost" label="Revert" />
</Section>
<Section
aria-hidden="true"
bare={true}
className="cre8-toolbar__spacer"
element="div"
/>
<Section
aria-label="View"
bare={true}
className="cre8-toolbar__group"
element="div"
role="group"
>
<Action intent="ghost" label="Split" />
</Section>
</Section>Change this declaration and watch it render:open Toolbar in the playground
Anatomy
The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.
| Slot | DOM class |
|---|---|
| root | .cre8-toolbar |
| group | .cre8-toolbar__group |
| spacer | .cre8-toolbar__spacer |
- Role
- toolbar
States and platforms
The states the contract publishes, the platforms it declares, and the style recipes that dress it.
States
Platforms
Recipes
Renderers
Every tag in the example above renders through a shared writer.
Declared adapters. A status is the manifest's declaration, not a measured parity result.
| Target | Renderer | Status |
|---|---|---|
| web | react | experimental |
Accessibility
Announces one named toolbar; each group is a labelled role=group.
- The root carries aria-label, and aria-orientation=vertical when the controls stack.
- Spacers are aria-hidden so they never enter the reading order.