Skip to content
Storybook

Breadcrumb

Shows the page location in the hierarchy. Separators flip in RTL.

Preview

React · live from the Storybook

HTML and CSS

The same component as plain HTML with pixels-ui.css, no framework needed.

Usage

  • Collapse middle items into “…” when there are more than 4.

Installation

Included in the core files. No extra install.

HTML
<link rel="stylesheet" href="/css/pixels-tokens.css">
<link rel="stylesheet" href="/css/pixels-ui.css">
<script src="/js/pixels-ui.js" defer></script>

Examples

Slash separator

API reference

Class / attributeTypeDescription
px-crumbs · --slashclassSeparator (Chevron default).
aria-current="page"attributeCurrent item, not a link.

Figma properties

Breadcrumbs4 variants · page “Breadcrumbs”Open

Shows the page location in the hierarchy. Chevron separators point to the inline end, so they flip in RTL. Collapse middle items into a … menu when there are more than 4. Wrap in <nav aria-label=&q…

PropertyTypeValues
SeparatorVariantChevron Slash
DirectionVariantLTR RTL
Breadcrumb item8 variants · page “Breadcrumbs”Open

One crumb. The last item is Current (aria-current="page") and is not a link.

PropertyTypeValues
LabelText“Projects”
TypeVariantHome Text
StateVariantDefault Hover Focused Current

Design tokens

Component tokens from the Figma Component collection. Override them to restyle just this component.

TokenAliasLight value
--px-breadcrumb-separatorcolor-content-neutral-placeholder#667085

Accessibility

  • Wrap in <nav aria-label="Breadcrumb">.