Where you are in a hierarchy: ball separators nod toward the crumb you point at, new levels unfold from the last separator and the current page switches to a sibling in place.
Use it in the header of anything with depth, where people need to see the path and jump to an ancestor. The path is your app state: push an item to go down, slice the array to go up.
When not to use
For switching between views of the same page use Tabs or Segmented Control. For the main navigation of an app use Sidebar.
Use it in the header of anything with depth: a file browser, a project tree, nested settings, a
record inside a workspace. It shows the path and lets people jump back up. The path is always the
app's state: pass items, push an item when the person opens a level and the new crumb unfolds
from the last separator; slice the array when they go up and the crumbs fold back into it. For
jumping between siblings of a level (Q2, Q3, Q4) give that item siblings: a chevron next to the
crumb opens them as a switcher, so people never go up a level just to come back down. For switching
between views of the same page use tabs or a segmented control instead.
The last item is the current page. Give every item a stable id: a crumb that stays in the path
keeps its identity, so only pushed or popped levels animate. Collapse is automatic past maxItems
(default 4) when it hides two or more levels; itemsBeforeCollapse and itemsAfterCollapse choose
which crumbs stay visible. In a narrow row the ancestors truncate first; the current page keeps at
least four characters and the ellipsis. A path that still does not fit is clipped at the nav's
edge, never drawn over its neighbours: on small screens lower itemsAfterCollapse to 1. The demos
measure their card in a layout effect, before the first paint, and give the breadcrumb a key per
breakpoint, so a phone never sees the wide path fold away on load.
Give an item siblings (the whole level, the item itself included) and a chevron appears inside
its crumb. It opens the level as a menu with the same pop and cascade as "…"; the item you are on
carries a small dot and aria-current="page". Picking one calls onNavigate with that sibling and
follows its href: replace the last item of items and the old crumb folds while the new one
unfolds. It needs two or more siblings; with one there is nothing to switch to and no chevron.
The default demo: the path is the header of a documents card. Q3 unfolds when the card comes into
view; its chevron switches to Q2 or Q4 and the list follows. Opening a folder pushes a crumb,
clicking an ancestor pops back to it.
size="sm" with maxItems={3}: the middle levels wait inside "…" and open as a cascading menu.
The invoice's name is loading for a moment: a muted pill stands in until it arrives. Below 400 px
of card width the demo keeps only the root and the record (itemsAfterCollapse={1}), so the
toolbar's line count keeps its room.
separator="chevron": instead of rolling, the chevron turns toward the crumb you point at.
"Settings" has no href: a plain level that takes no hover and stays out of the tab order. The
current page lists the team pages as siblings, and the panel below follows the switch.
A nav landmark (aria-label, default "Breadcrumb") holds an ordered list; the current page is
a span with aria-current="page", not a link.
Separators and the hover and current-page pills are aria-hidden. The ball's contrast is
decorative; link text is muted-foreground on the background (AA) and turns foreground on
hover and focus, in both themes.
The "…" is a Radix DropdownMenu trigger named "Show 3 more levels" (with the count) and the hidden
levels are menuitem links in order.
The sibling switcher is its own button next to the crumb's label, named "Switch Q3" (the
label), so the current page stays a span with aria-current="page". In the menu the item you
are on has aria-current="page"; the dot that marks it is aria-hidden.
Truncated labels keep their full text as the accessible name and the title. A crumb with
loading is named "Loading" until its label arrives.
Crumbs without href (levels the person cannot open) are plain text and out of the tab order.
Touch: the press shows the same signal as the hover (the crumb sinks and the separator stretches
toward it) before navigating.
With prefers-reduced-motion (or MotionKitProvider reducedMotion="always") there is no lift, no
sink and no separator nod; the hover capsule and the color change still answer hover and focus. A
pushed crumb fades in at its place while the row reflows in the fade time, a popped one fades out,
and the hidden levels fade in together. At rest the breadcrumb looks the same: ball separators, the
current page's pill and its rim.
Nothing runs at rest. Hover drives one small spring per separator; the unfold animates a
clip-path (and a soft mask on its label) on one crumb while the list item's width follows the
same progress. The menu
content mounts only while "…" or a switcher is open (Radix Portal). No observers, timers or loops.
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 6.1 kB gzip
Component and MotionKit helpers; excludes react, react-dom, motion, @radix-ui/react-dropdown-menu.
Dependencies
@radix-ui/react-dropdown-menu · peer
motion · peer
Triggers
hover, press, a value change, click
Reduced motion
No lift, sink or separator nod; a pushed crumb fades in at its place while the row reflows in the fade time, a popped one fades out and the hidden levels fade in together.
Keyboard
Tab / Shift + Tab
Next or previous crumb link, and the "…" button
Enter
Follows the focused crumb
Enter / Space / ArrowDown on "…"
Opens the hidden levels with focus on the first one
ArrowUp on "…"
Opens the hidden levels with focus on the last one
ArrowDown / ArrowUp, Home / End
Moves between hidden levels in the menu; typing a letter jumps to a level
Enter / Space / ArrowDown on the crumb's chevron
Opens the sibling switcher; the current sibling is marked
Escape
Closes the menu and returns focus to its trigger
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)