Skip to content

Stacked Breadcrumbs

Layered chevron tabs create a compact trail with a distinct current page.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import StackedBreadcrumbs from "./StackedBreadcrumbs";
export default function Example() {
return (
<StackedBreadcrumbs
items={[
{
"id": "home",
"label": "Home",
"href": "/"
},
{
"id": "collection",
"label": "Collection",
"href": "/components"
},
{
"id": "cards",
"label": "Cards",
"href": "/categories/cards"
}
]}
label={"Breadcrumb"}
color={"#cbb399"}
background={"#2d2721"}
/>
);
}

Using Stacked Breadcrumbs

Pass the hierarchy in order through items, with an href for every ancestor. The final item is rendered as the current page rather than a link.

The trail scrolls horizontally in narrow containers. Labels, links and the accessible navigation name all come from props.

Props

NameTypeRequiredDefaultDescription
itemsArray<{ id?, label, href? }>No[]Ordered path items; provide href for every item except the last.
labelstringNo"Breadcrumb"Accessible navigation label.
colorstringNo"#cbb399"Current-page background colour.
backgroundstringNo"#2d2721"Ancestor-link background colour.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

Pagination Rail

Navigation

A raised selection moves through a compact row of numbered page controls.

Folding Menu

Navigation

Numbered navigation panels unfold beneath a compact, tactile trigger.

Path Stepper

Navigation

Numbered stops connect into a clean vertical route with completed and current states.

Bookmark Tabs

Navigation

Numbered paper tabs with a bookmark ribbon and an inset content panel.