Skip to content

Breadcrumb ​

Displays the path to the current resource using a hierarchy of links.

Usage ​

Approximate web preview — the HarmonyOS rendering is the reference.

Custom separator & narrow width ​

The list wraps onto several lines instead of overflowing.

Approximate web preview — the HarmonyOS rendering is the reference.

API ​

Extracted from the @Param / @Event / @BuilderParam declarations in the library sources.

SBreadcrumb ​

shadcn-vue Breadcrumb: the path to the current resource as a hierarchy of links.

Slots: children (trailing closure)

SBreadcrumbList ​

flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5. Responsive: wraps onto several lines instead of overflowing, and uses the wider gap only when the list itself has room (≥ 640vp).

Slots: children (trailing closure)

SBreadcrumbItem ​

inline-flex items-center gap-1.5

Slots: children (trailing closure)

A navigable crumb: text-muted-foreground hover:text-foreground transition-colors. Navigate with the native .onClick() on the link.

PropTypeDefaultDescription
textResourceStr | undefinedundefined
iconstring | undefinedundefinedLeading lucide icon name.

Slots: children (trailing closure)

SBreadcrumbPage ​

The current page: text-foreground font-normal, not interactive.

PropTypeDefaultDescription
textResourceStr''

SBreadcrumbSeparator ​

Separator between items; a 14vp chevron-right unless custom content is given.

PropTypeDefaultDescription
iconstring'chevron-right'Lucide icon of the separator; pass '' to show only custom slot content (e.g. a slash Text).

Slots: children (trailing closure)

SBreadcrumbEllipsis ​

Collapsed crumbs: flex size-9 items-center justify-center with an ellipsis icon.

PropTypeDefaultDescription
labelResourceStr$r('app.string.spark_more')

MIT Licensed