---
title: Breadcrumb
description: Displays the path to the current resource using a hierarchy of links.
---
## Installation
```bash
npx shadcn-vue@latest add breadcrumb
```
## Usage
```vue
Home
Components
Breadcrumb
```
## Examples
### Custom separator
Use a custom component as `slot` for `` to create a custom separator.
```vue showLineNumbers {2,20-22}
Home
Components
```
---
### Dropdown
You can compose `` with a `` to create a dropdown in the breadcrumb.
```vue showLineNumbers {2-7,16-26}
Components
Documentation
Themes
GitHub
```
---
### Collapsed
We provide a `` component to show a collapsed state when the breadcrumb is too long.
```vue showLineNumbers {3,15}
```
---
### Link component
To use a custom link component from your routing library, you can use the `asChild` prop on ``.
```vue showLineNumbers {15-19}
Home
```
---
### Responsive
Here's an example of a responsive breadcrumb that composes `` with ``, ``, and ``.
It displays a dropdown on desktop and a drawer on mobile.