Toolbar

General toolbar layout component for headings, counts, grouped controls, actions, and separators.

Overview

Toolbar provides consistent shell spacing for dense UI surfaces without owning the controls inside it. Compose it with Button, Input, SearchExpand, ToggleGroup, Menu, Breadcrumb, and other components.

size scales toolbar-owned gaps, separators, title text, count text, and the title trigger. Pass the same size to the controls you compose inside the toolbar so the full row follows one density.

Use Toolbar.TitleTrigger next to Toolbar.Title for a title-adjacent selection label, such as Attach Files. It moves from muted text to foreground text on hover and while its menu is open.

Use Toolbar.Breadcrumb when the heading becomes a path. It styles the primitive breadcrumb slots for toolbar heading scale while leaving links, overflow menus, route state, and folder data with the consumer. Use text separators such as / for path-like toolbar headings. Collapse states are explicit composition: render BreadcrumbIcon, BreadcrumbLabel, BreadcrumbOverflowMenu, and tooltips from consumer-owned path data.

Usage

import { Toolbar } from "@tilt-legal/cubitt-components/toolbar";

<Toolbar size="md">
  <Toolbar.Heading>
    <Toolbar.Title>Files</Toolbar.Title>
    <Toolbar.Count>18</Toolbar.Count>
  </Toolbar.Heading>
  <Toolbar.Actions>{actions}</Toolbar.Actions>
</Toolbar>;

Examples

Sizes

Title Trigger

API Reference

Toolbar

PropTypeDefaultDescription
size"sm" | "md" | "lg""md"Scales toolbar-owned spacing, separator height, title text, count text, and title trigger text. Pass matching sizes to composed controls.
wrapbooleanfalseAllows toolbar contents to wrap when horizontal space is constrained.
classNamestring-Overrides or extends root toolbar styles.
childrenReactNode-Toolbar content.

Also accepts standard div props.

Toolbar.Heading

PropTypeDefaultDescription
classNamestring-Overrides or extends the heading region.
childrenReactNode-Usually Toolbar.Title, Toolbar.TitleTrigger, and Toolbar.Count.

Also accepts standard div props.

Toolbar.Title

PropTypeDefaultDescription
classNamestring-Overrides or extends title text styles, including size when needed.
childrenReactNode-Title content.

Also accepts standard div props.

Toolbar.Breadcrumb

PropTypeDefaultDescription
classNamestring-Overrides or extends toolbar breadcrumb styles.
childrenReactNode-Primitive breadcrumb composition, usually BreadcrumbList and its child slots.

Also accepts primitive Breadcrumb props.

Toolbar.TitleTrigger

PropTypeDefaultDescription
showChevronbooleantrueShows the trailing chevron.
chevronReactNode<ChevronDown />Custom trailing indicator.
classNamestring-Overrides or extends the title trigger styles.
childrenReactNode-Active adjacent label.

Also accepts Button props.

Toolbar.Count

PropTypeDefaultDescription
classNamestring-Overrides or extends count text styles.
childrenReactNode-Count content.

Also accepts standard span props.

Toolbar.Group And Toolbar.Actions

PropTypeDefaultDescription
classNamestring-Overrides or extends the control group.
childrenReactNode-Grouped controls.

Both accept standard div props.

Toolbar.Spacer

PropTypeDefaultDescription
classNamestring-Overrides or extends the flexible spacer.

Also accepts standard div props.

Toolbar.Separator

PropTypeDefaultDescription
orientation"horizontal" | "vertical""vertical"Separator direction. Vertical separators get toolbar-sized heights.
classNamestring-Overrides or extends separator styles.

Also accepts primitive Separator props.

On this page