Breadcrumb

Navigation aid that shows the user's current location within a hierarchy. Each item can be a link, a button, or plain text (current page).

Playground
size
separator
<Breadcrumb items={[
  { label: 'Home', href: '/' },
  { label: 'Settings', href: '/settings' },
  { label: 'Profile' },
]}/>

Basic

Pass an items array. The last item is automatically treated as the current page.

Sizes

Three size presets: sm, md (default), lg.

Custom Separator

Pass any ReactNode as the separator prop.

onClick Items

Use onClick instead of href for client-side navigation or custom handlers.

Deep Hierarchy

Works with any number of items.

API: BreadcrumbProps

PropertyTypeDefaultDescription
itemsBreadcrumbItem[]Array of breadcrumb items. The last item is the current page (non-link)
separatorReactNode"/"Custom separator rendered between items
size"sm" | "md" | "lg""md"Font size preset
classNamestringExtra class applied to the <ol> element

API: BreadcrumbItem

PropertyTypeDefaultDescription
labelReactNodeText or node to display
hrefstringIf provided, renders the item as an <a> tag
onClick(e: MouseEvent) => voidIf provided (and no href), renders the item as a <button>