Skip to content
nexubDesign System
v11.9.0

Components · Actions

Toolbar

StableAdded v0.0.1

A row of buttons and toggles with one tab stop and arrow-key movement, built on Radix.

import { Toolbar } from '@nexub/react';
View as Markdown

Playground

Props

TSX
<Toolbar.Root aria-label="Text formatting">…</Toolbar.Root>

Examples

Default

Floating

Props

Props
PropTypeDefaultDescription
floatingbooleanfalseA glass capsule for the control layer above content, e.g. editor or selection actions.
placement'bottom'—With floating: pin it to the bottom centre of the viewport.
orientation / loop / dirRadix Toolbar props—Arrow-key direction and wrapping.
aria-labelstring—Name the toolbar, e.g. "Text formatting".
Toolbar.Buttoncompound—An action button.
Toolbar.ToggleGroup / ToggleItemcompound—A set of toggles (type="single" | "multiple", value). Icon-only items need aria-label.
Toolbar.Separatorcompound—A divider between groups.

Accessibility

ARIA roles

toolbar

Keyboard

  • Tab

    Moves into and out of the toolbar (one tab stop).

  • Arrow Left / Right

    Moves between controls.

  • Enter / Space

    Activates a button or toggles an item.

On iOS & Android