---
title: "Breadcrumb"
description: "The path from the home page to the current page, such as Home, Men, Shoes. Long paths fold into a menu, and the links work with your router."
url: https://gelatinui.com/components/breadcrumb
markdown_url: https://gelatinui.com/components/breadcrumb.md
access: free
install: "npx shadcn@latest add @gelatin-ui/breadcrumb"
registry_item: https://gelatinui.com/r/breadcrumb.json
version: "2026-11-08"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Breadcrumb

> The path from the home page to the current page, such as Home, Men, Shoes. Long paths fold into a menu, and the links work with your router.

Page: https://gelatinui.com/components/breadcrumb

## When to use it

Best for: The path from the home page to the current page.

- Use it on pages two levels deep or more.
- Use `BreadcrumbEllipsis` in a Menu for a long path.
- Use `phone="page"` on `BreadcrumbList` for a one-line bar.

## When not to use it

- For the steps of a process, use a [Stepper](https://gelatinui.com/components/stepper.md).

## Notes for agents

- Links come in through `render`: `<BreadcrumbLink render={<Link to="/docs" />}>`.
- The current page is `BreadcrumbPage`, which is not a link.
- `BreadcrumbSeparator` children replace the chevron.
- An icon link needs a name for screen readers.

## Anatomy

```text
Breadcrumb
├─ BreadcrumbList (0..n)
├─ BreadcrumbItem (0..n)
├─ BreadcrumbLink (0..n)
├─ BreadcrumbPage (0..n)
├─ BreadcrumbSeparator (0..n)
└─ BreadcrumbEllipsis (0..n)
```

## API reference

### Breadcrumb

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `aria-label` | `string` |  | Defines a string value that labels the current element. The name of the landmark for screen readers. Default "Breadcrumb". Translate it. |

### BreadcrumbList

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `phone` | `"page" \| "wrap"` | "wrap" | The path under 640px. `wrap` (default): every step, on more lines when it needs them. `page`: only the last step (the current page), for a one-line top bar next to actions (the Rich Text blocks: a path and Share in a 48px bar). The hidden steps leave the page, not only the eye: put a way back elsewhere (a back button) when the app needs one. |

### BreadcrumbItem

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### BreadcrumbLink

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

### BreadcrumbPage

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### BreadcrumbSeparator

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### BreadcrumbEllipsis

Also takes every prop of Base UI `UseRender`: https://base-ui.com/react/components/use-render

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| Breadcrumb | `breadcrumb` |  |  |  |
| BreadcrumbList | `breadcrumb-list` | `data-phone` |  |  |
| BreadcrumbItem | `breadcrumb-item` |  |  |  |
| BreadcrumbLink | `breadcrumb-link` | `data-popup-open` |  | `hit-area` |
| BreadcrumbPage | `breadcrumb-page` |  |  |  |
| BreadcrumbSeparator | `breadcrumb-separator` |  |  |  |
| BreadcrumbEllipsis | `breadcrumb-ellipsis` | `aria-haspopup`, `data-popup-open` | `--radius` | `hit-area` |

## Usage

Put a link per step, and `BreadcrumbPage` last.

```tsx title="docs-path.tsx"
import {
  Breadcrumb,
  BreadcrumbItem,
  BreadcrumbLink,
  BreadcrumbList,
  BreadcrumbPage,
  BreadcrumbSeparator,
} from "@/components/ui/breadcrumb";

export function DocsPath() {
  return (
    <Breadcrumb>
      <BreadcrumbList>
        <BreadcrumbItem>
          <BreadcrumbLink href="/docs">Docs</BreadcrumbLink>
        </BreadcrumbItem>
        <BreadcrumbSeparator />
        <BreadcrumbItem>
          <BreadcrumbPage>Install</BreadcrumbPage>
        </BreadcrumbItem>
      </BreadcrumbList>
    </Breadcrumb>
  );
}
```

## Compose

Rules:

- Touch targets (`touch-targets`): Give every control a hit area of at least 44 px on touch screens, even when it looks smaller.
- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/breadcrumb
```

It adds 3 registry items: 2 files, 258 lines, and the npm packages `@base-ui/react`, `@phosphor-icons/react`, `clsx`, `tailwind-merge`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Menu](https://gelatinui.com/components/menu.md)
- [Navigation Menu](https://gelatinui.com/components/navigation-menu.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves focus through the links. |
| Enter | Opens the focused link. |

## Accessibility

It is a `nav` landmark with an ordered list inside.

`aria-label` names the landmark. The default is "Breadcrumb".

The list wraps on a phone, so nothing is cut.
