Skip to content

Breadcrumb

Navigation

Trail of links showing the current page hierarchy.

Full hierarchyCollapsed hierarchy
Open preview

Responsive viewport — resize the window to explore. Direction and density apply only to this preview. Theme applies to the docs too.

Usage

Use BreadcrumbPage for the current location and BreadcrumbLink for navigable ancestors. Compose separators between items. Use asChild with Next.js Link when appropriate.

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

Available in the included @dashboardpack/core package. Copy the complete example from Source code for all imports and state. Add "use client" when using hooks or event handlers. See installation and theming for project setup.

API reference

Common props and defaults. Slot-specific props are named below; native elements also accept their standard HTML attributes. The component TypeScript definitions are the complete type reference.

Breadcrumb props
PropType / DefaultDescription
childrenReactNode

Default: —

Compose list, items, separators, and current page.
asChild (BreadcrumbLink)boolean

Default: false

Use a single custom link child.
separator (Breadcrumb)ReactNode

Default: —

Accepted root prop; compose BreadcrumbSeparator to render separators.

Build with these too