Skip to content

Toolbar

Last updated 11 Nov 2026

NbToolbar is the strip of tools above a table, a list or a panel: a labelled role="toolbar" with one height that every button inside it takes, an optional flush layout with the primary action in the corner, and one tab stop that the arrow keys move along.

Props ​

PropTypeDefaultDescription
labelstringrequiredThe toolbar's accessible name
size'sm' | 'md' | 'lg' | 'xl''lg'Height of the strip, given to every button without a size
flushbooleanfalseNo gaps, square corners, buttons the full height of the strip

Slots ​

SlotDescription
startGrows to fill the width the tools leave: a search, a filter row
defaultThe tools: ghost or icon-only buttons, an action group, an overflow
endThe primary action, flush in the corner when flush is set

Exposed ​

MemberDescription
focus()Moves focus into the toolbar, onto its tab stop

Sizing buttons from outside ​

The toolbar provides its size and flush through NB_TOOLBAR (src/components/Toolbar.context.ts). NbButton reads it when it has no size of its own. NbMenu resets it, so a button in a menu opened from a toolbar is an ordinary button again.