--- 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 ``` ## Examples ### Custom separator Use a custom component as `slot` for `` to create a custom separator. ```vue showLineNumbers {2,20-22} ``` --- ### Dropdown You can compose `` with a `` to create a dropdown in the breadcrumb. ```vue showLineNumbers {2-7,16-26} ``` --- ### 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} ``` --- ### Responsive Here's an example of a responsive breadcrumb that composes `` with ``, ``, and ``. It displays a dropdown on desktop and a drawer on mobile.