Skip to Content
ComponentsBreadcrumb

Breadcrumb

Breadcrumbs show the user’s current location within a hierarchical structure and allow navigation to parent pages.

Import

import { Breadcrumb } from "@raydenui/ui";

Usage

Basic

<Breadcrumb items={[ { label: "Home", href: "/" }, { label: "Products", href: "/products" }, { label: "Electronics", active: true }, ]} />

With Icons

<Breadcrumb items={[ { label: "Home", href: "/", icon: "home" }, { label: "Dashboard", href: "/dashboard" }, { label: "Settings", active: true }, ]} />

Separator Styles

// Chevron (default) <Breadcrumb separator="chevron" items={[...]} /> // Double chevron <Breadcrumb separator="double-chevron" items={[...]} /> // Slash <Breadcrumb separator="slash" items={[...]} />

With Borders

<Breadcrumb hasBorders items={[ { label: "Home", href: "/" }, { label: "Products", href: "/products" }, { label: "Electronics", active: true }, ]} />

With Disabled Items

<Breadcrumb items={[ { label: "Home", href: "/" }, { label: "Archive", disabled: true }, { label: "Current Page", active: true }, ]} />

Props

PropTypeDefaultDescription
itemsBreadcrumbItem[]—Array of breadcrumb items (required)
separator"chevron" | "double-chevron" | "slash""chevron"Separator style between items
hasBordersbooleanfalseShow top and bottom borders
classNamestring—Additional CSS classes
PropTypeDescription
labelstringDisplay text (required)
hrefstringLink URL (makes item a link)
iconReactNode | IconNameLeading icon
disabledbooleanDisabled state (grey text, not clickable)
activebooleanActive/current page state (primary color)

Accessibility

  • Uses <nav> with aria-label="Breadcrumb"
  • Current page marked with aria-current="page"
  • Semantic list structure with <ol>
  • Separators marked with aria-hidden
Last updated on