Toolbar

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

Overview

Toolbar provides consistent shell spacing for dense UI rows without owning the surfaces of 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 composed controls when the whole row should follow one density.

Toolbar.TitleTrigger is an unstyled Button for title-adjacent menu labels. It stays surface-free and only handles text hover/open color.

Toolbar.Separator renders the Cubitt Separator component with toolbar-sized vertical heights, so separator color remains context-aware.

Toolbar.Breadcrumb adapts breadcrumb slots for toolbar heading scale while leaving links, menus, route state, and path data with the consumer.

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

Default

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 layout and scale 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 text styles.
childrenReactNode-Active adjacent label.

Also accepts Button props. The trigger uses Button's unstyled mode internally.

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 Cubitt Separator props.

On this page