1import { Breadcrumb } from "@/zeroui/components/breadcrumbs";23export default function Example() {Colored Variant
1<Breadcrumb2 items={items}3 variant="colored"Separators
1<Breadcrumb items={items} separator="slash" />2<Breadcrumb items={items} separator="chevron" />3<Breadcrumb items={items} separator="arrow" />Collapsed with Ellipsis
1<Breadcrumb2 items={longItems}3 maxItems={3}Collapsible with Dropdown
1import { BreadcrumbCollapsible } from "@/zeroui/components/breadcrumbs";23<BreadcrumbCollapsibleWith Icons
1import { Home, Folder, File } from "lucide-react";23<BreadcrumbSizes
1<Breadcrumb items={items} size="sm" />2<Breadcrumb items={items} size="md" />3<Breadcrumb items={items} size="lg" />All Variants
Default
Muted
Colored
Underline
1<Breadcrumb items={items} variant="default" />2<Breadcrumb items={items} variant="muted" />3<Breadcrumb items={items} variant="colored" />Installation
npx zeroui@latest add breadcrumbBreadcrumb Props
Props
| name | type | default | description |
|---|---|---|---|
| items | BreadcrumbItem[] | - | - |
| separator | "slash" | "chevron" | "arrow" | "dot" | "custom" | "slash" | - |
| customSeparator | ReactNode | - | - |
| variant | "default" | "muted" | "colored" | "underline" | "default" | - |
| size | "sm" | "md" | "lg" | "md" | - |
| maxItems | number | - | - |
| onItemClick | (item, index) => void | - | - |
BreadcrumbCollapsible Props
Props
| name | type | default | description |
|---|---|---|---|
| items | BreadcrumbItem[] | - | - |
| separator | "slash" | "chevron" | "arrow" | "dot" | "custom" | "chevron" | - |
| customSeparator | ReactNode | - | - |
| variant | "default" | "muted" | "colored" | "default" | - |
| size | "sm" | "md" | "lg" | "md" | - |
| maxVisible | number | 3 | - |
| onItemClick | (item, index) => void | - | - |
BreadcrumbItem Type
Props
| name | type | default | description |
|---|---|---|---|
| label | string | - | - |
| href | string | - | - |
| icon | ReactNode | - | - |