Skip to content

Breadcrumbs

Breadcrumbs show where the user is in a hierarchy. They collapse when there are too many items: more than 3 on desktop/tablet and more than 2 on viewports below md (~768px). In the collapsed state, the first and last items stay visible and middle segments move into an overflow menu.

Loading Code Block...

Use @hubtel/react-icons (React) or @hubtel/vue-icons with h() (Vue) for icon. Give each item a stable id where possible, and set href when the segment is a link (external URLs open in a new tab).

Loading Code Block...

With only a few segments (for example three), the trail usually stays fully expanded on desktop widths.

Loading Code Block...
Loading Code Block...

chevron (default) uses a chevron between items; slash uses /.

Loading Code Block...

Set tooltipHeader (and optionally tooltipSubtext, tooltipPosition, tooltipAlignment) on a BreadcrumbItem to surface a tooltip on hover. Both frameworks support these fields.

Loading Code Block...

PropsDefaultTypeDescription
items*[]BreadcrumbItem[]Segments to render, in order. Each item should include display text; add `href` / `icon` / tooltip metadata as needed.
separator'chevron''chevron' | 'slash'Style of delimiter between segments.
PropsDefaultTypeDescription
text*-stringVisible label for the segment.
href-stringNavigation target. External URLs open in a new tab via `window.open`; internal paths use `window.location.href`.
icon-ReactNodeOptional leading icon. Pass a JSX element (e.g. `<UserIcon size={16} />` from `@hubtel/react-icons`). The icon span sits to the left of the label with a 4 px right margin.
tooltipHeader-stringTooltip title shown on hover. React wraps the entire row; Vue wraps the icon only.
tooltipSubtext-stringTooltip supporting line.
tooltipPosition'bottom''top' | 'right' | 'bottom' | 'left'Tooltip placement relative to its trigger.
tooltipAlignment'start''start' | 'center' | 'end'Tooltip alignment along the trigger axis.