Dashral Pro is on the wayGet 30% off at launch

Dashral

Breadcrumb

Shows where a page sits in the site's hierarchy, with links back up to each level.

$ pnpm dlx shadcn@latest add https://dashral.com/r/breadcrumb.json

Installation

$ pnpm dlx shadcn@latest add https://dashral.com/r/breadcrumb.json

Adds the component, the components it builds on, its npm packages and the theme tokens it uses. Using Dashral often? Add the registry to components.json once:

components.json
{
  "registries": {
    "@dashral": "https://dashral.com/r/{name}.json"
  }
}

Then add components by name:

$ pnpm dlx shadcn@latest add @dashral/breadcrumb

Usage

example.tsx
import { Breadcrumb } from "@/components/dashral/breadcrumb"

<Breadcrumb
  items={[
    { label: "Home", href: "/" },
    { label: "Customers", href: "/customers" },
    { label: "Olivia Martin" },
  ]}
/>

Examples

Collapsed with a custom separator

Past maxItems the middle collapses into an ellipsis that expands the trail.

File browser

Open folders and the trail follows; any crumb takes you back, and deep paths collapse in the middle.

  • Invoice #1040.pdf120 KB

Page header

Where you are, above the page's title, status and actions.

Invoice #1042

Due in 5 days

PT Nusantara · Issued Oct 12, 2026 · Rp 12.500.000

API reference

Breadcrumb

Also takes every prop of <nav>(opens in a new tab).

PropTypeDefault
items{ label, href?, icon? }[]

The trail, in order; the last is the current page. Required.

—
linkAsElementType

Your router's link, e.g. Next.js Link.

"a"
maxItemsnumber

Longer trails collapse their middle into an ellipsis that expands them.

—
separatorReactNode

Between items, e.g. <Slash />.

<ChevronRight />
aria-labelstring

The landmark's name.

"Breadcrumb"
moreLabelstring

What the ellipsis says to screen readers, in your language.

"Show {count} more pages"
classNames{ list, item, link, page, separator }

Classes for each part.

—

Accessibility

  • A nav landmark named “Breadcrumb” with an ordered list, so screen readers say how many levels there are.
  • The current page has aria-current="page"; separators are hidden from assistive technology; the ellipsis says how many pages it hides.