Component libraryToolbar
Components/Navigation

Toolbar

Pro

A native action toolbar with roving keyboard focus and an explicit overflow menu handoff.

npx shadcn@latest add @tidal-pro/toolbar
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/toolbar

Import components/ui/tidal.css, components/ui/toolbar.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

label names the required role=toolbar. items are ordered consumer-owned actions with unique IDs, ReactNode labels, optional accessible labels/icons, controlled pressed state, disabled state, neutral or strong emphasis, optional separator, required onAction callback, native button attributes and refs. Native action handlers run first and prevention suppresses onAction; preventing an overflow action also keeps its menu open. Visible actions use one roving tab stop: horizontal Left/Right follows dir, vertical Up/Down follows orientation, Home/End reach edges, loop defaults true, disabled items are skipped, and focused items are revealed only within the toolbar scroll region. overflowIds explicitly moves matching actions into a Radix menu while invalid IDs are ignored; the More trigger joins toolbar roving focus and accepts a label, accessible label, native attributes and ref. Pressed overflow actions use menuitemcheckbox semantics. Radix owns menu focus, Escape and focus return. emptyMessage preserves numeric zero when items is empty. orientation, dir, loop, disabled, theme and portalContainer configure behavior/presentation. Root native div attributes and forwarded ref are preserved while role/label/orientation remain owned. Consumers own action state, responsive overflow selection, form submission, navigation, requests and persistence.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.