Skip to Content
Nextra 4.0 is released 🎉

Breadcrumb

The Breadcrumb component is a pixel-art styled navigation trail.
It supports links, click handlers, and custom separators — ideal for showing the user’s location within a site hierarchy with a retro aesthetic.


🚀 Usage

Basic Example


import { Breadcrumb } from "pixelartui-react"; <Breadcrumb items={[ { label: "Home", href: "#" }, { label: "Products", href: "#" }, { label: "Current Page" }, ]} />

With onClick


<Breadcrumb items={[ { label: "Home", onClick: () => console.log("Home") }, { label: "Category", onClick: () => console.log("Category") }, { label: "Item" }, ]} />

Custom Separator


<Breadcrumb items={[ { label: "Home", href: "#" }, { label: "Products", href: "#" }, { label: "Current Page" }, ]} separator="/" />

Two Items


<Breadcrumb items={[ { label: "Home", href: "#" }, { label: "Page" }, ]} />

Styles


<Breadcrumb items={[{ label: "Home", href: "#" }, { label: "Page" }]} breadcrumbStyle="dark" /> <Breadcrumb items={[{ label: "Home", href: "#" }, { label: "Page" }]} breadcrumbStyle="light" />

đź”§ Props

PropTypeDefaultDescription
itemsBreadcrumbItem[]—Array of breadcrumb items to display.
separatorstring">"Character(s) displayed between breadcrumb items.
breadcrumbStyle"dark" | "light"undefinedApplies a light or dark theme to the component.
classNamestringundefinedAdds additional CSS classes for custom styling.
PropTypeDefaultDescription
labelstring—Display text for the breadcrumb item.
hrefstringundefinedURL to navigate to (renders as a link).
onClick() => voidundefinedClick handler (renders as a button).
Last updated on