A navigation trail showing the user’s location in a hierarchy. Compose it from nana-breadcrumb-item children; the last item is usually current. One element covers the common professional patterns through orthogonal attributes: - Standard / Chevron / Path — separator (slash · chevron · arrow · dot, or any custom glyph) and variant="path". - Pill · Card · Step — variant. - Truncated / Dropdown — max-items collapses the middle into a …, either inline (collapse="expand") or into a menu (collapse="dropdown"). - Mobile compact / back-nav — responsive collapses to ← Parent below compact-width. - Underlined — underline emphasises the current page (composes with any variant).
Home
Components
Breadcrumb
Show code Copy < nana-breadcrumb >
< nana-breadcrumb-item href = "#" >Home</ nana-breadcrumb-item >
< nana-breadcrumb-item href = "#" >Components</ nana-breadcrumb-item >
< nana-breadcrumb-item >Breadcrumb</ nana-breadcrumb-item >
</ nana-breadcrumb >
npm install @nana-tec/ui-components
import " @nana-tec/ui-components/breadcrumb " ;
< nana-breadcrumb-item href = " # " > Home </ nana-breadcrumb-item >
< nana-breadcrumb-item href = " # " > Components </ nana-breadcrumb-item >
< nana-breadcrumb-item > Breadcrumb </ nana-breadcrumb-item >
current marks the active page; disabled dims a crumb.
Home
Restricted
Current
Show code Copy < nana-breadcrumb >
< nana-breadcrumb-item href = "#" >Home</ nana-breadcrumb-item >
< nana-breadcrumb-item disabled >Restricted</ nana-breadcrumb-item >
< nana-breadcrumb-item current >Current</ nana-breadcrumb-item >
</ nana-breadcrumb >
The variant attribute restyles the trail — default, path, pill, card,
or step.
Home
Library
Data
Cart
Shipping
Payment
Home
Docs
Guide
Show code Copy < nana-breadcrumb variant = "pill" >
< nana-breadcrumb-item href = "#" >Home</ nana-breadcrumb-item >
< nana-breadcrumb-item href = "#" >Library</ nana-breadcrumb-item >
< nana-breadcrumb-item current >Data</ nana-breadcrumb-item >
</ nana-breadcrumb >
< nana-breadcrumb variant = "step" >
< nana-breadcrumb-item href = "#" >Cart</ nana-breadcrumb-item >
< nana-breadcrumb-item href = "#" >Shipping</ nana-breadcrumb-item >
< nana-breadcrumb-item current >Payment</ nana-breadcrumb-item >
</ nana-breadcrumb >
< nana-breadcrumb variant = "card" >
< nana-breadcrumb-item href = "#" >Home</ nana-breadcrumb-item >
< nana-breadcrumb-item href = "#" >Docs</ nana-breadcrumb-item >
< nana-breadcrumb-item current >Guide</ nana-breadcrumb-item >
</ nana-breadcrumb >
Properties Property Attribute Type Default Description ariaLabelaria-labelstring | null'Breadcrumb'Accessible label for the landmark (maps to `aria-label`) collapse— BreadcrumbCollapse'expand'How a collapsed trail reveals hidden items compactWidthcompact-widthnumber420Container width (px) below which `responsive` switches to the compact form maxItemsmax-itemsnumber | undefined—Collapse the middle of the trail once there are more than this many items responsive— booleanfalseCollapse to a single `← Parent` link below `compact-width` separator— string | undefined—Separator glyph: a preset name (`slash`/`chevron`/`arrow`/`dot`) or any string size— BreadcrumbSize'md'Size applied to every item so the whole trail stays consistent underline— booleanfalseUnderline the current page (composes with any variant) variant— BreadcrumbVariant'default'Visual style of the trail
Events Event Description nana-expandFired when a truncated trail is expanded inline
Slots Slot Description (default)One or more `nana-breadcrumb-item` elements
CSS parts Part Description ::part(base)The `<nav>` landmark ::part(list)The `<ol>` that lays the items out ::part(menu)The overflow dropdown menu
CSS custom properties Property Description --nana-breadcrumb-separatorSeparator glyph between items --nana-breadcrumb-gapSpace around each separator
Event Type Description nana-expandCustomEventFired when a truncated trail is expanded inline
Slot Description (default)One or more nana-breadcrumb-item elements
Variable Default Description --nana-breadcrumb-separator— Separator glyph between items --nana-breadcrumb-gap— Space around each separator
Part Description baseThe <nav> landmark listThe <ol> that lays out the items menuThe overflow dropdown menu
Keyboard accessible Screen-reader labels Focus-visible states ARIA roles and states WCAG 2.2 AA contrast
Explore Breadcrumb interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook