MenuChevron Down
Breadcrumb - Docs - Artefact

Breadcrumb

Navigation
Presentational

Introduction

A navigation aid that shows the current page's location within a hierarchy using a list of links.

Usage

Basic Breadcrumb

import { Breadcrumb } from "../components/ui";

export default function MyPage() {
  return (
    <Breadcrumb
      items={[
        { label: "Home", href: "/" },
        { label: "Components", href: "/components" },
        { label: "Breadcrumb" },
      ]}
    />
  );
}

Custom Separator

import { Breadcrumb } from "../components/ui";

export default function MyPage() {
  return (
    <Breadcrumb
      separator="/"
      items={[
        { label: "Home", href: "/" },
        { label: "Breadcrumb" },
      ]}
    />
  );
}

CMS Page Builder

This component is available as a breadcrumb block in the Page Builder (content/pages/*.json):

{
  "type": "breadcrumb",
  "items": [
    { "label": "Home", "href": "/" },
    { "label": "Docs", "href": "/docs" },
    { "label": "Breadcrumb" }
  ],
  "variant": "underline",
  "size": "md"
}

Props

Breadcrumb

PropTypeDescription
itemsBreadcrumbItem[]The breadcrumb items to render.
separatorChildCustom separator between items. Default: a chevron-right icon.

| variant | `"underline" \ | "plain"` | The visual style of the breadcrumb. |

| size | `"xs" \ | "sm" \ | "md" \ | "lg"` | The size of the breadcrumb. |

| class | string | Custom CSS classes for the root element. |

BreadcrumbItem

PropertyTypeDescription
labelChildDisplay text or JSX node.
hrefstringIf present, renders as a link; otherwise renders as plain text (current page).
currentbooleanMarks the current page. Defaults to true for the last item.