Skip to content
1 viewer
View
Component · Input

Toolbar

cre8.primitive.toolbar

Row of commands in labelled groups, with spacers that push later groups to the far edge. Built by ToolbarBuilder from bare elements.

Edit live
Category
Input
Slots
3
States
0
Writer
Legacy

Preview

Live renderShared SSR + WASM writers
<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.

SlotDOM class
root.cre8-toolbar
group.cre8-toolbar__group
spacer.cre8-toolbar__spacer
3 rows
Role
toolbar

States and platforms

The states the contract publishes, the platforms it declares, and the style recipes that dress it.

States
No published states
Platforms
web
Recipes
unstyledruntime-console

Renderers

Legacy writer
Toolbar has no shared writer yet: the server renders it through its legacy path, which the WASM DOM does not share.

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.

TargetRendererStatus
webreactexperimental
1 row

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.