GitHubGitHub
← All components
Navigation / component

Breadcrumb

A semantic path with links, callback steps, muted labels, and a current-page marker.

LinkActionCurrent
<Breadcrumb items={crumbs} />

Installation

pnpm add @chanrg/4ui

Import the stylesheet once, at the root of your app:

import '@chanrg/4ui/styles.css';

Usage

import { Breadcrumb } from '@chanrg/4ui';<Breadcrumb items={crumbs} />

API reference

Props

PropTypeDefaultDescription
itemsBreadcrumbItem[][]Ordered path items.
labelstringBreadcrumbNavigation label.

CSS variables

VariableDescription
--4ui-surfacePrimary component surface.
--4ui-textPrimary foreground color.
--4ui-borderDefault control and panel border.

Accessibility

  • Uses nav, ordered-list, and aria-current semantics.

Dependencies

No runtime component dependencies.