GitHub

/ toolbar

Toolbar

@kumiki/components/toolbar

Compound <Root> / <Item> / <Separator> — APG toolbar pattern with a single tab stop and arrow-key roving navigation between enabled items.

This component, layer by layer

Styled, copy-paste presets (preview). Run pnpm kumiki add to drop the source into your project, then edit freely.

Live preview

Live preview…

Install
pnpm add @kumiki/atelier
Editor toolbar
<script lang="ts">
  import { Tailwind as Toolbar } from '@kumiki/atelier/toolbar';
</script>

<Toolbar.Root aria-label="Formatting">
  <Toolbar.Item><b>B</b></Toolbar.Item>
  <Toolbar.Item><i>I</i></Toolbar.Item>
  <Toolbar.Item><u>U</u></Toolbar.Item>
  <Toolbar.Separator />
  <Toolbar.Item>Link</Toolbar.Item>
</Toolbar.Root>

/ accessibility

Accessibility

axe-core — run on every PR (LTR + RTL × every documented state).

Keyboard

No component-specific keymap. Inherits standard browser focus / activation behaviour.

Test discipline

  • axe-core — run on every PR (LTR + RTL × every documented state).
  • APG keyboard tests — Playwright, hand-written per pattern.
  • VoiceOver / NVDA — Guidepup nightly schedule.
  • Type-level required names — title / aria-label / aria-labelledby.
Read the W3C ARIA APG pattern ↗