Skip to content

Toolbar

SToolbar groups related actions (buttons, toggles) into a single panel with the toolbar role. Arrow keys move focus between the items (roving focus), so the whole panel takes one Tab stop. Separate groups with SSeparator.

Basic usage

Vertical toolbar

Elevation

The toolbar sits at the first elevation level. flat presses it to the page, elevation raises it higher — see Elevation.

API

Props

NameTypeDefaultDescription
orientation"vertical" | "horizontal""horizontal"Toolbar orientation. It sets the layout and the direction of arrow key navigation.
squarebooleanundefinedSquare corners: removes the border radius (rounded by default).
loopbooleantrueLoops arrow key navigation (from the last item to the first and back).
aria-labelstringundefinedAccessible name of the toolbar (for screen readers).
flatbooleanundefinedRemoves the shadow. Overridden by the elevation prop when it is set.
elevation0 | 1 | 2 | 3 | 4 | 5undefinedShadow level 0–5 (scale); 0 means no shadow. Overrides flat.

Slots

NameDescription
defaultToolbar actions: buttons (SButton), toggles, separators (SSeparator).