---
title: "Breadcrumb"
description: "A semantic path through your application."
---

Interactive preview: https://ui.coderocket.app/docs/vue/components/breadcrumb

## Usage

Choose Vue in the Studio and export your saved library, or install this item through its connected CLI/MCP. [Vue setup and Nuxt integration](/docs/vue).

```vue
<script setup lang="ts">
import Breadcrumb from "./components/ui/breadcrumb.vue";
</script>

<template>
  <Breadcrumb :items="[{ label: 'Workspace', href: '#workspace' }, { label: 'Settings', href: '#settings' }, { label: 'Profile' }]" />
</template>

```

## Design system

This Vue component consumes the same CodeRocket tokens as the React version. Import the compiled styles and wrap your app in ThemeScope. Tailwind is optional.

## Behavior and accessibility

Vue uses native events, v-model and slots. Reka UI handles keyboard and focus behavior in complex primitives. Connect actions to your own application and review labels, contrast and mobile behavior in context. Components are experimental during early access.

## Source and props

This is the exact Vue single-file component delivered by the export. Related helpers and dependencies are included automatically.

```vue
<script setup lang="ts">
withDefaults(
  defineProps<{
    items: Array<{ label: string; href?: string }>;
    label?: string;
  }>(),
  { label: "Breadcrumb" },
);
</script>
<template>
  <nav :aria-label="label">
    <ol class="cr-breadcrumb">
      <li v-for="(item, index) in items" :key="index">
        <svg
          v-if="index"
          class="cr-breadcrumb-separator"
          width="14"
          height="14"
          viewBox="0 0 24 24"
          fill="none"
          stroke="currentColor"
          stroke-width="1.75"
          aria-hidden="true"
        >
          <path d="m9 6 6 6-6 6" /></svg
        ><a v-if="item.href && index < items.length - 1" :href="item.href"
          ><slot name="item" :item="item" :index="index">{{
            item.label
          }}</slot></a
        ><span
          v-else
          :aria-current="index === items.length - 1 ? 'page' : undefined"
          ><slot name="item" :item="item" :index="index">{{
            item.label
          }}</slot></span
        >
      </li>
    </ol>
  </nav>
</template>
```
