Breadcrumb

A path like Finder's path bar: small icons and names, separated by chevrons.

@cupertinoui/breadcrumbRegistry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/breadcrumb

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@/components/ui/breadcrumb"

<Breadcrumb>
  <BreadcrumbList>
    <BreadcrumbItem><BreadcrumbLink href="/">Macintosh HD</BreadcrumbLink></BreadcrumbItem>
    <BreadcrumbSeparator />
    <BreadcrumbItem><BreadcrumbPage>Documents</BreadcrumbPage></BreadcrumbItem>
  </BreadcrumbList>
</Breadcrumb>

API Reference

Every part forwards the props of the underlying element. The props below are the ones CupertinoUI adds or changes.

PropTypeDescription
renderReactElementRender your router's link.
classNamestringExtra classes, merged with the component's own.

Breadcrumb / BreadcrumbList / BreadcrumbItem / BreadcrumbPage / BreadcrumbSeparator / BreadcrumbEllipsis

PropTypeDescription
classNamestringExtra classes, merged with the component's own.