This page as markdown: /breadcrumbs.md · Index for agents: /llms.txt · Everything in one file: /llms-full.txt
Breadcrumbs
Status: stable
Navigation trail showing the path to the current page. A labelled
Keywords: breadcrumbs, hierarchy, path, navigation
Usage
Use Breadcrumbs to show the user's location inside a hierarchy and provide lightweight parent navigation.
Best practices
- Do: Use breadcrumbs when users can arrive deep in a nested structure.
- Do: Keep the current page as text so it reads as location, not another link.
- Don't: Do not use breadcrumbs as a substitute for primary navigation or step progress.
- Don't: Do not make the last crumb a link. It points at the page you are already on, and screen readers announce it as a destination; render it as the current page with aria-current.
Anatomy
| Part | Required | Description |
|---|---|---|
| BreadcrumbItem | yes | A single step in the path. |
| BreadcrumbLink | no | A linked ancestor destination. |
| BreadcrumbPage | yes | The current non-linked page. |
| BreadcrumbSeparator | no | The visual separator between steps. |
Subcomponents
| Name | Type | Description |
|---|---|---|
| BreadcrumbItem | ComponentPropsWithRef<'li'> | A single crumb slot ( |
| BreadcrumbLink | ComponentPropsWithRef<'a'> & { render?: useRender.RenderProp } | An interactive ancestor crumb (). Muted by default, brightens to foreground on hover/focus. render composes another element with the crumb's styling, e.g. a router link: render={}, so navigating stays in the app. |
| BreadcrumbPage | ComponentPropsWithRef<'span'> | The current-page crumb (). Non-interactive, full-contrast. |
| BreadcrumbSeparator | ComponentPropsWithRef<'li'> + { children? } | Decorative divider ( |
Props
| Name | Type | Default | Description |
|---|---|---|---|
| Breadcrumbs | ComponentPropsWithRef<'nav'> | — | The trail root. Renders |
Tokens used
muted-foreground, foreground
Motion
- arrival · Root · no motion — The trail is page furniture, rendered with the page header. An entrance would replay on every navigation, which is exactly when the reader looks at it to get their bearings.
- response · BreadcrumbLink ·
motion-interactive— Ancestors are muted until hovered or focused. Easing the ink makes the trail read as links answering the pointer; a hard snap across a row of small text looks like flicker. - transition · Root · no motion — A breadcrumb has no state of its own. The current page changes by navigation, which replaces the trail; animating between two trails would imply the path itself moved.
- activity · Root · no motion — It never works in the background. A route that is still loading says so in the page, not in its address.
Accessibility
- The
- Crumbs sit in an ordered list (
- ) to convey hierarchy and position.
- The current page uses aria-current="page" and is rendered as plain text, not a link.
- Separators are aria-hidden so the chevron glyph is not announced.
Related
- Components: SideNav, PageHeader
Examples
Three-level trail
import { BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, Breadcrumbs, BreadcrumbSeparator } from "@sableui/react"
<Breadcrumbs><BreadcrumbItem><BreadcrumbLink href="/">Home</BreadcrumbLink></BreadcrumbItem><BreadcrumbSeparator /><BreadcrumbItem><BreadcrumbLink href="/library">Library</BreadcrumbLink></BreadcrumbItem><BreadcrumbSeparator /><BreadcrumbItem><BreadcrumbPage>Reports</BreadcrumbPage></BreadcrumbItem></Breadcrumbs>
Custom separator
import { BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, Breadcrumbs, BreadcrumbSeparator } from "@sableui/react"
<Breadcrumbs><BreadcrumbItem><BreadcrumbLink href="/">Home</BreadcrumbLink></BreadcrumbItem><BreadcrumbSeparator>/</BreadcrumbSeparator><BreadcrumbItem><BreadcrumbPage>Settings</BreadcrumbPage></BreadcrumbItem></Breadcrumbs>