A navigation trail. Every item but the last renders as a link; the last is always plain text
marked aria-current="page", regardless of whether it was given an href — the current page
shouldn't link to itself. Server-renderable: no hooks, since a breadcrumb trail is derived from the
current route, not interactive state.
tsx
<Breadcrumbs />Examples
items takes plain data — omit href on the last entry, or leave it in; either way it renders as
the current page:
tsx
<Breadcrumbs
items={[
{ label: "Home", href: "/" },
{ label: "Components", href: "/components" },
{ label: "Breadcrumbs" },
]}
/>as takes your router's own link component, the same convention Card/Button use for href —
applied to every non-current item at once, since a trail's links all go through the same router:
tsx
import Link from "next/link";
<Breadcrumbs as={Link} items={items} />;separator swaps the icon between items — anything from the Icon
catalog works:
tsx
<Breadcrumbs
separator="arrow-right"
items={[{ label: "Home", href: "/" }, { label: "Settings" }]}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| as | readonly | — | Your router's own link component, e.g. Next's `Link` — passed through to every non-current item, the same `as` convention `Card`/`Button` use for `href`. |
| className | text | — | — |
| items * | readonly | — | — |
| separator | function | grid | warning | palette | chevron-down | chevron-up | chevron-left | chevron-right | close | check | plus | minus | search | arrow-right | arrow-left | menu | info | circle | eye | eye-off | trash | edit | copy | download | upload | external-link | star | calendar | clock | user | settings | filter | more-horizontal | refresh | lock | maximize | minimize | home | list | layers | sliders | bell | pin | link | globe | power | hash | at | chat | users | user-plus | user-minus | crown | shield | ban | mute | volume | mic | smile | image | file | folder | code | terminal | bot | sparkle | zap | coin | gift | cart | trophy | gamepad | dice | chart | flag | heart | bookmark | play | pause | stop | sun | moon | unlock | send | inbox | arrow-up | arrow-down | more-vertical | sort | login | logout | key | mail | reply | share | undo | redo | save | clipboard | archive | tag | ticket | wallet | percent | help | alert | check-circle | x-circle | plus-circle | bell-off | megaphone | thumbs-up | thumbs-down | camera | video | music | headphones | server | database | cloud | wifi | cpu | activity | trending-up | trending-down | pie-chart | target | rocket | fire | hourglass | compass | slash-command | id-card | grip | sidebar | git-branch | git-commit | git-merge | git-pull-request | git-fork | git-compare | issue | bug | package | braces | brackets | text-cursor | webhook | plug | puzzle | wrench | hammer | file-code | file-diff | diff | cloud-upload | cloud-download | container | flask | workflow | keyboard | monitor | laptop | smartphone | hard-drive | network | command | chevron-right | — |