Breadcrumb

Show where a page sits in a hierarchy.

npx shadcn@latest add @silicon-ui/breadcrumb
navigationwayfinding
Loading…

Installation

With the shadcn CLI

npx shadcn@latest add @silicon-ui/breadcrumb

Manually

  1. Install the dependencies.

    npm install lucide-react motion
  2. Copy these files into your project. Shared files are skipped if you already have them.

    • components/silicon-ui/breadcrumb/breadcrumb.tsx
    • components/silicon-ui/breadcrumb/breadcrumb.module.css
    • components/silicon-ui/lib/silicon-provider.tsx shared
  3. Install the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation

Usage

Source codetsx
import { Breadcrumb } from "@/components/silicon-ui/breadcrumb/breadcrumb";

API reference

PropTypeDefault
items*BreadcrumbItem[]—
ariaLabelstring"Breadcrumb"

Dependencies

npm
lucide-reactmotion
Registry
silicon-motion-tokens