Skip to main content

Toolbar

A toolbar is a container for IconButton and similar UI components.

Features:

  • A toolbar can be horizontal or vertical
  • When there is not enough space for all children, toolbar shows an arrow icon, which shows the overflowing items in a popup, upon mouseover. Optionally, overflow can be wrapped into multiple lines, in horizontal toolbars.
Result
Loading...
Live Editor

Orientation

By default, toolbar is horizontal. To make it vertical, set orientation prop to "vertical":

Result
Loading...
Live Editor

Overflow

When there is not enough room to show all its items, an arrow icon will appear at the end. Hovering over this arrow will display the rest of the items in a popup.

Result
Loading...
Live Editor

Wrapping overflowing children

In horizontal toolbars, overflowBehavior prop can be set to wrap which allows overflowing items to wrap into multiple lines, instead of the default way of handling overflow in a popup.

Result
Loading...
Live Editor

Other children

While toolbar is primarily used to render a list of action buttons, other components can also be rendered inside a toolbar, and the overflow behavior works regardless.

Result
Loading...
Live Editor