Toolbar Component
The Toolbar component helps users to effectively organize and quickly access frequently used actions. It provides multiple overflow handling modes to accommodate different UI requirements and screen sizes.
Usage
To import and use the Toolbar component in your application, use the following code snippet:
Demos
Explore the demos of the React Toolbar component. Refer to this page.
Props
The following table outlines the props for the Toolbar component:
| Name | Type | Default | Description |
|---|---|---|---|
| collision | boolean | true | Specifies whether popups adjust their position to avoid overlapping with other elements.
This property is applicable only when in |
| keyboardNavigation | boolean | true | Specifies whether keyboard interaction is enabled within the Toolbar.
When set to |
| orientation | Orientation.Horizontal | Specifies the layout direction of how the Toolbar items are arranged. The possible values for this property as follows
| |
| overflowMode | OverflowMode.Scrollable | Specifies the Toolbar display mode when Toolbar content exceeds the viewing area. The possible values for this property as follows
| |
| scrollStep | number | undefined | Specifies the scrolling distance in pixels when the Toolbar items overflow in Scrollable mode.
This property is applicable only when the Toolbar is in |
Methods
The following table outlines the methods for the Toolbar component:
| Name | Parameters | Returns | Description |
|---|---|---|---|
| refreshOverflow | - | void | Refreshes the Toolbar overflow state and recalculates item visibility. This method should be called when Toolbar content or container dimensions change. Note: This method is not applicable when the Toolbar is in MultiRow mode. |