Skip to content

Breadcrumb โ€‹

A wayfinding component for page hierarchies โ€” pair it with a page header above the title and subtitle. Items render as <a> when they include href, as <button> otherwise; the last item (or any item with current: true) becomes the unclickable current marker. Three variants (default, contained, underlined), six accent colors, three sizes, optional truncation, and per-item icon slots cover the v1 surface.

Basic โ€‹

Three items separated by โ€บ. Last item is the current page.

Vue SFC

Variants โ€‹

default / contained / underlined side-by-side, same items.

Vue SFC

Sizes โ€‹

sm / md / lg โ€” affects font, padding, and gap.

Vue SFC

Colors โ€‹

Six theme colors plus surface, applied to the current item and hover state.

Vue SFC

With icons โ€‹

Items with leading SVG icons (slot="icon-{id}" for the Lit element).

Vue SFC

Separators โ€‹

Custom separator strings (โ€บ, /, โ€ข) and a slotted SVG chevron.

Vue SFC

Interactive โ€‹

Clicks emit mno-click; the demo logs each click and prevents anchor navigation.

Vue SFC

Truncation โ€‹

Long path with the truncate flag โ€” items overflow to ellipsis instead of wrapping.

Vue SFC

Customized โ€‹

Per-element overrides via cssClass (Vue) or extra utility classes (CSS).

Vue SFC

Slot-body composition โ€‹

Wrap with <mono-breadcrumb> for nav semantics + theming, slot a <mono-breadcrumb-list> as the body.

Vue SFC

Standalone list โ€‹

<mono-breadcrumb-list> used directly with no wrapper โ€” themes itself via modifier attributes.

Vue SFC

Types โ€‹

Importimport { BreadcrumbProps, BreadcrumbListProps } from 'mono-helper'
PropValueDefaultDescription
<mono-breadcrumb>
itemsBreadcrumbItem[][]List of breadcrumb segments to render.
modelValuenull | BreadcrumbItemโ€”Two-way bound currently selected breadcrumb item.
variant'default' | 'contained' | 'underlined''default'Visual style of the breadcrumb.
size'sm' | 'md' | 'lg''md'Size of the breadcrumb.
color'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'surface''primary'Color theme of the breadcrumb.
separatorstring'โ€บ'Separator character shown between segments.
truncatebooleanfalseTruncates long segment titles with an ellipsis.
disabledbooleanfalseDisables interaction with all segments.
cssClassBreadcrumbCssClass{}Per-part class overrides for styling internal elements.
cssClassNamestring''Extra class applied to the root element.
<mono-breadcrumb-list>
itemsBreadcrumbItem[][]List of breadcrumb segments to render.
itemBreadcrumbItemโ€”A single breadcrumb item to render.
titlestring''Direct single-row props.
hrefstring''Link target for this segment.
iconstring''Icon name shown before the segment title.
badgestring | numberโ€”Badge text or count shown on the segment.
badgeColor'primary' | 'success' | 'danger' | 'warning' | 'info' | 'default'โ€”Color theme of the segment badge.
currentbooleanfalseMarks this segment as the current one.
disabledbooleanfalseDisables interaction with this segment.
variant'default' | 'contained' | 'underlined''default'Standalone styling โ€” only used when there is no parent `<mono-breadcrumb>`.
size'sm' | 'md' | 'lg''md'Size of the breadcrumb when standalone.
color'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'surface''primary'Color theme of the breadcrumb when standalone.
separatorstring'โ€บ'Separator character shown between segments when standalone.
truncatebooleanfalseTruncates long segment titles when standalone.