Toolbar

Toolbars group related actions in a docked or floating container.

Props

React props
NameTypeRequiredDefaultDescription
classNamestring | ClassNameComponent<ToolbarInterface> | Partial<Record<"toolbar", string>>No—Root classes (string), static element classes (object), or state-aware element classes (function).
colorToolbarColorNo'standard'Container color treatment.
variantToolbarVariantNo'docked'Container presentation.
orientationToolbarOrientationNo'horizontal'Layout axis for the toolbar's children.
accessibleLabelstringNo—Accessible name applied to the toolbar container. Prefer this prop for cross-framework parity; `aria-labelledby` remains available through the framework's native attributes.
maxVisiblenumberNo—Maximum number of non-pinned actions shown in the toolbar.
responsivebooleanNofalseMeasures the toolbar and reserves one action slot for overflow when needed.
itemWidthnumberNo48Estimated width of one action slot when `responsive` is enabled.
moreToolbarMorePropsNo—Presentation options for the automatically rendered overflow trigger.
morePositionAnchorPositionNo'auto'Position of the generated overflow menu relative to the More trigger. `auto` follows the toolbar orientation and the trigger's viewport half.
onMoreOpenChange(open: boolean) => voidNo—Notifies consumers when the generated overflow menu opens or closes.
renderMore(props: ReactToolbarMoreRenderProps) => ReactNodeNo—Replaces the default overflow trigger while retaining the overflow menu.