Component libraryBreadcrumbs
Components/Navigation

Breadcrumbs

Free

Navigate a hierarchy with a compact overflow menu.

npx shadcn@latest add https://tidalui.com/r/breadcrumb.json
Desktop viewport

Installation

Terminal
npx shadcn@latest add https://tidalui.com/r/breadcrumb.json

Import components/ui/tidal.css, components/ui/breadcrumb.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

Required items: unique nonempty id, label, optional href, onNavigate():void, Lucide icon, disabled. Final item is always the noninteractive current page with aria-current=page. Ancestors use native anchors, buttons or text; href plus onNavigate intercepts only an unmodified primary click, preserving modified-click browser behavior. Optional label(defaultBreadcrumb), maxVisible(default4; finite values floor/clamp to at least2 visible crumbs excluding the overflow button), theme(light|dark, pass for portal), native nav attributes/ref/className/style. Narrow widths automatically collapse middle ancestors while retaining root/current; labels truncate visually with full accessible names, and very long paths wrap. Hidden ancestors use a Radix menu with arrows/Home/End/typeahead/Enter/Escape, disabled skipping and focus return. Stable keyed crumbs interpolate positions and new crumbs reveal; reduced motion shows final states immediately. Empty items render nothing. Consumer owns routing and page focus after navigation.

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.