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
| Prop | Type | Default | Description |
|---|---|---|---|
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.