Browse documentation

Component

Breadcrumb

Use actual links for ancestors and BreadcrumbPage for the current location.

Preview

Installation

Packages are unreleased. Follow the packed artifact setup for package mode, or run the local CLI in copy mode and complete the reported npm, token CSS, and Tailwind setup.

Copy Breadcrumb · bash
pnpm exec ui add breadcrumb
Full installation guide

Usage

This example uses package mode. In copy mode, import the generated component from your project and complete the manual setup steps in the installation guide.

Breadcrumb example · tsx
import { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator } from '@nimjs/ui';

export function Example() {
  return (
    <Breadcrumb><BreadcrumbList><BreadcrumbItem><BreadcrumbLink href="/">Home</BreadcrumbLink></BreadcrumbItem><BreadcrumbSeparator /><BreadcrumbItem><BreadcrumbPage>Settings</BreadcrumbPage></BreadcrumbItem></BreadcrumbList></Breadcrumb>
  );
}

System metadata

API and states

Use actual links for ancestors and BreadcrumbPage for the current location.

Accessibility

A named nav contains an ordered list; the current page exposes aria-current="page".