sigilUI

Breadcrumb

Navigation trail showing the current page location within a hierarchy.

@sigil-ui/componentsReact

Breadcrumb

Navigation trail showing the current page location within a hierarchy.

Installation

npx @sigil-ui/cli add breadcrumb

Preview

Live preview Interactive

Import

import { Breadcrumb } from "@sigil-ui/components";

Usage

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

Examples

Custom separator

<Breadcrumb
  separator="›"
  items={[
    { label: "Dashboard", href: "/dashboard" },
    { label: "Settings", href: "/settings" },
    { label: "Profile" },
  ]}
/>

With icons as separator

<Breadcrumb
  separator={<ChevronRight className="size-3" />}
  items={[
    { label: "Home", href: "/" },
    { label: "Components", href: "/docs/components" },
    { label: "Breadcrumb" },
  ]}
/>

Props

PropTypeDefaultDescription
itemsBreadcrumbItem[]—Trail items; last item is the current page
separatorReactNode"/"Separator between items
classNamestring—Additional CSS classes
PropTypeDescription
labelstringDisplay text
hrefstringLink URL (omit for current page)

Tokens

This component reads these CSS variables:

  • --s-text — current page text color
  • --s-text-muted — ancestor links and separator color