--- title: Breadcrumb description: Displays the path to the current resource using a hierarchy of links. --- ## Preview ## Installation CLI Manual ```bash npx @olyx/cli@latest add 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, BreadcrumbSeparator, } from "@/components/ui/breadcrumb" ``` ```tsx Home Components Breadcrumb ``` ## API Reference ### 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) | ### 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