Breadcrumb

Path-based navigation showing where the user is in a hierarchy. Compose with BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, and BreadcrumbSeparator.

Basic

Linked path segments with the current page as plain text.

Dark previewReplay previewOpen in new tab

Usage

Import the parts you need from the component's folder.

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

Custom separator

Override the BreadcrumbSeparator slot to use any icon.

Dark previewReplay previewOpen in new tab

Ellipsis

Collapse the middle of a long path with BreadcrumbEllipsis.

Dark previewReplay previewOpen in new tab

API Reference

BreadcrumbLink

PropTypeDefaultDescription
asChildbooleanfalseRender into the child element. Use to wrap a NuxtLink.

BreadcrumbSeparator / BreadcrumbEllipsis

PropTypeDefaultDescription
classstring—Override the default chevron or dots.
SlotDescription
defaultReplace the built-in separator icon (chevron) or ellipsis with custom content.