# Breadcrumb

> Shows the path to the current location.

- Category: [Navigation](https://tarve.dev/docs.md#navigation)
- Import: `import { Breadcrumb } from "@tarve/core";`
- Props type: `BreadcrumbProps`
- Source: [packages/core/src/extra-controls.ts:109](https://github.com/omarcosr/tarve/blob/main/packages/core/src/extra-controls.ts#L109)

## Usage

```tsx title="Breadcrumb.tsx"
import { Breadcrumb } from "@tarve/core";

<Breadcrumb
  items={[
    { label: "Home", onClick: () => console.log("home") },
    { label: "Projects", onClick: () => console.log("projects") },
    { label: "tarve" },
  ]}
/>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` (required) | `BreadcrumbItem[]` | — |  |
| `separator` | `Child` | `"/"` |  |

## Common props

Shared by every component (descriptions: https://tarve.dev/docs.md#common-props): `children`, `class`, `className`, `highlight`, `id`, `key`, `motionFrom`, `onHighlight`, `onPaste`, `onPointerLeave`, `onPointerMove`, `onSize`, `onTransitionEnd`, `rovingGroup`, `style`.

## Types

```ts title="BreadcrumbItem"
interface BreadcrumbItem {
  label: string;
  disabled?: boolean;
  onClick?: () => void;
}
```

Previous: [Collapsible](https://tarve.dev/docs/components/Collapsible.md) · Next: [Pagination](https://tarve.dev/docs/components/Pagination.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Breadcrumb · Index for agents: https://tarve.dev/llms.txt
