# Breadcrumb

The path to the current page, with links back up.

- **Use it for**: Showing where a page sits in a hierarchy, with links back up.
- **Not for**: Steps of a process. Try [Stepper](https://unseenui.com/components/stepper/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { Breadcrumb } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<Breadcrumb items={[{id: "components", label: "Components", href: "/"}, {id: "button", label: "Button"}]} />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `currentId` | `string` | Defaults to the final item. |
| `items` (required) | `readonly BreadcrumbItem[]` |  |
| `label` | `string` |  |
| `separator` | `ReactNode` | Decorative only: do not supply interactive content. |

## Keyboard

Tab visits ancestor links. The current page is readable text with aria-current="page".

## Works with

[CommandPalette](https://unseenui.com/components/command-palette/), [ShortcutHelp](https://unseenui.com/components/shortcut-help/), [TableOfContents](https://unseenui.com/components/table-of-contents/), [Tabs](https://unseenui.com/components/tabs/), [Stepper](https://unseenui.com/components/stepper/), [Pagination](https://unseenui.com/components/pagination/), [DropdownMenu](https://unseenui.com/components/dropdown-menu/), [ContextMenu](https://unseenui.com/components/context-menu/), [NavigationMenu](https://unseenui.com/components/navigation-menu/), [Sidebar](https://unseenui.com/components/sidebar/), [ShareMenu](https://unseenui.com/components/share-menu/)

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