Toolbar
<ui5-toolbar> | Since 1.17.0The ui5-toolbar component is used to create a horizontal layout with items.
The items can be overflowing in a popover, when the space is not enough to show all of them.
Grouped Overflow
Items that share the same non-empty overflowGroup string are treated as one atomic
unit during overflow distribution: when any member must move into the overflow
popover, all members move together. The visible bar always preserves slot order;
the group becomes adjacent only inside the popover. See the overflowGroup property
on ToolbarItemBase for the full contract.
Keyboard Handling
The ui5-toolbar provides advanced keyboard handling.
- [Left]/[Right] - navigate among toolbar items
- [Home]/[End] - move to first/last toolbar item
- [Tab] / [Shift]+[Tab] - exit the toolbar
ES6 Module Import
import "@ui5/webcomponents/dist/Toolbar.js";
Basic Sample
Properties
accessibleName
accessibleNameRef
alignContent
design
overflowButtonAccessibleName
Slots
default
Events
No events available for this component.
Methods
isOverflowOpen
CSS Parts
No CSS parts available for this component.
CSS Custom States
No CSS custom states available for this component.
More Samples
Always Overflowing Items
To force items into the overflow, set "overflow-priority='AlwaysOverflow'" on the Toolbar items.
Never Overflowing Items
To force items staying always visible and never overflow, set "overflow-priority='NeverOverflow'" on the Toolbar items.
Spacers and Separators
Items Alignment
You can align items to the Start, or to the End via the "align-content" property
ToolbarItem
ToolbarItem wrapper used to add any component to Toolbar
Grouped Overflow
Items that share the same non-empty overflow-group string overflow together as one atomic unit — either all visible in the bar or all in the overflow popover, never split. The value is a free-form string label.