--- title: Breadcrumb description: Displays the path to the current resource using a hierarchy of links. --- ## Installation CLI Manual ```bash npx shadcn@latest add @coss/breadcrumb ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/components/ui/breadcrumb" ``` ```tsx Home Components Breadcrumb ``` ## API Reference This is a custom component, not a Base UI wrapper. ### Breadcrumb Root navigation container with `aria-label="breadcrumb"`. ### BreadcrumbList Ordered list container for breadcrumb items. ### BreadcrumbItem Individual breadcrumb item container. ### BreadcrumbLink Link element for navigable breadcrumb items. Supports the `render` prop to use custom link components (e.g., Next.js Link). | Prop | Type | Default | Description | | -------- | ---------------------- | ------- | ------------------------------------------------ | | `render` | `React.ReactElement` | - | Render as a different element (e.g., Next.js Link) | ### BreadcrumbPage Non-interactive element representing the current page. Includes `aria-current="page"`. ### BreadcrumbSeparator Separator between breadcrumb items. Defaults to a chevron icon but accepts custom children. ### BreadcrumbEllipsis Ellipsis indicator for collapsed breadcrumb items. ## Examples ### With custom separator