Skip to content
Stylhero 0.8.0
Components

Core

Layout and type

Inputs

Overlays

Navigation

Data display

Charts

Transitions and utilities

Page pieces (landing pages, portfolios, docs)

Icons

Components / Navigation

Breadcrumbs

Trail of parent pages. The last item is the current page.

import { Breadcrumbs } from "@stylhero/ui";

Example

Code
import { Breadcrumbs } from "@stylhero/ui";

function BreadcrumbsExample() {
  return <Breadcrumbs items={[{ label: "Home", href: "#" }, { label: "Builds", href: "#" }, { label: "Starter build" }]} />;
}

Props

PropTypeDefaultDescription
items required Crumb[] -
className string -

Types

type Crumb = { label: ReactNode; href?: string };

Accessibility

  • A <nav aria-label="Breadcrumb">; the last item is the current page (aria-current="page").

Generated from src/components/Breadcrumbs.tsx. Something wrong or missing? Open an issue.