ComponentsNew

Expanding Toolbar

A bar of icon buttons: on hover or focus a button widens and shows its label. The tooltip lives inside the button, no popups.

Customize

color
activeBackground
borderColor

Based on ordinary-owl-54 by csemszepp (MIT license) · Terms of use

More in Pro

View all

Props

8 properties
PropertyTypeDefaultDescription
itemsExpandingToolbarItem[]—Buttons on the left: icon, label and click handler.
endItemsExpandingToolbarItem[]—Buttons on the right, after a divider.
widthnumber360Width of the whole bar in pixels.
expandedWidthnumber142Width of an open button in pixels.
colorstring"#d4d4d4"Icon and label color.
activeBackgroundstring"rgba(255, 255, 255, 0.08)"Background of the open button.
borderColorstring"rgba(255, 255, 255, 0.14)"Color of the frame and the divider.
classNamestring—Classes for the wrapper.

Dependencies

2 required packages

npm install clsx tailwind-merge

Related components

View all