Breadcrumb

Compact hierarchy marker — links, a current-page token, and a chevron separator. No motion; emphasis comes from typography weight and hover color.

Usage

Custom separator

Slot any icon or glyph into Breadcrumb.Separator to override the default chevron.

Collapsed with dropdown

Use Breadcrumb.Ellipsis alongside a Dropdown Menu to collapse deep hierarchies.

Responsive

Hide middle items at narrow viewports using Breadcrumb.Ellipsis inside a md:hidden wrapper. The full list is visible from md up.

Use the {#snippet child({ props })} pattern to render Breadcrumb.Link through any router-aware anchor — SvelteKit's <a> or an external component — without losing the breadcrumb's visual styles.

Every subcomponent passes through native HTML attributes via spread.

PropTypeDescription
stringMerged onto the <nav> element via tailwind-merge.
HTMLElement | nullTwo-way-bindable reference to the <nav>.
PropTypeDescription
stringAnchor href. Standard HTMLAnchorAttributes.
Snippet<[{ props }]>Render-prop escape hatch for asChild-style composition with router primitives.
stringMerged onto the link via tailwind-merge.