Skip to content
SENVENLI UI

Breadcrumbs

Shows where a page sits in a hierarchy, collapsing middle levels into a menu when long.
Where the page sits
import { Breadcrumbs, Breadcrumb } from "@senvenli/react/navigation";

Examples

A long trail

With more than four levels, the middle ones fold into a menu.

Composed from parts

`Breadcrumb` children with icons; the last one is the current page.

Guidelines

When to use it

  • Pages nested two or more levels deep.

Use something else when

  • One way back to the parent page is enough. Link
  • The levels are steps of a flow. Stepper

Accessibility

Built in

  • A navigation landmark; the current page has aria-current.

You provide

  • With children: a textValue on a Breadcrumb whose label is not plain text, for the folded menu.

API reference

Breadcrumbs

items
readonly BreadcrumbItem[]

From the section root ("Projects"), never "Home", to the current page. Leave it out to compose Breadcrumbs as children instead.

children
React.ReactNode

With no items: Breadcrumbs from the root to the current page (the last one).

aria-label
string

Names the navigation landmark; "Location" by default.

Breadcrumb

href
string

A page; leave it out on the last one, the current page.

icon
IconName
childrenRequired
React.ReactNode

The level's name. It may hold more than text; then give textValue for the folded "…" menu.

textValue
string

The words for the "…" menu when this level folds; the label itself when it is plain text.