Toolbar

The Toolbar component provides a top-level navigation and action bar. It supports optional left, center, and right sections, as well as avatars and customizable appearance.

Usage

Default


const leftIcon = (
  <IconButton theme="clear" shadow="none" icon={FaArrowLeft} ariaLabel="Back" />
);
const rightIcon = (
  <IconButton theme="clear" shadow="none" icon={FaBell} ariaLabel="Notifications" />
);

<Toolbar
  title="Dashboard"
  left={leftIcon}
  right={rightIcon}
/>

Props

Sortable data table
PropTypeDefaultDescription
titlestring-Optional title displayed in the center section of the toolbar.
leftReactNode-Content to render in the left section of the toolbar.
centerReactNode-Content to render in the center section, below the title if present.
rightReactNode-Content to render in the right section of the toolbar, before the avatar.
avatarAvatar Component-Optional avatar component displayed at the end of the toolbar.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultVisual theme of the toolbar.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultShadow style for the toolbar.
rounding"none" | "small" | "medium" | "large"Configured DefaultBorder radius of the toolbar.
ariaLabelstring"Toolbar"ARIA label for the toolbar for accessibility.
headingLevel1 | 2 | 3 | 4 | 5 | 61Heading level used for the title element.
classNamestring-Custom class name for the toolbar root element.
data-testidstring"toolbar"Test ID for the toolbar element.