v1.3.0 28

Breadcrumb

Navigation aid showing the current page's location within a hierarchy.

Default

html
<nav aria-label="Breadcrumb">
  <ol class="vt-breadcrumb">
    <li>
      <a href="#" class="vt-link vt-link-muted">Home</a>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <a href="#" class="vt-link vt-link-muted">Products</a>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <span class="vt-breadcrumb-current">T-Shirts</span>
    </li>
  </ol>
</nav>

With Slash Separator

Uses a forward slash as the separator between items.

html
<nav aria-label="Breadcrumb">
  <ol class="vt-breadcrumb">
    <li>
      <a href="#" class="vt-link vt-link-muted">Home</a>
    </li>
    <li>
      <span class="vt-breadcrumb-separator">/</span>
    </li>
    <li>
      <a href="#" class="vt-link vt-link-muted">Products</a>
    </li>
    <li>
      <span class="vt-breadcrumb-separator">/</span>
    </li>
    <li>
      <span class="vt-breadcrumb-current">T-Shirts</span>
    </li>
  </ol>
</nav>

With Icons

Breadcrumb items accompanied by descriptive icons.

html
<nav aria-label="Breadcrumb">
  <ol class="vt-breadcrumb">
    <li>
      <a href="#" class="vt-link vt-link-muted">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
          <path d="M13 2L2 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12 3V22H7C5.11438 22 4.17157 22 3.58579 21.4142C3 20.8284 3 19.8856 3 18V7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12 7L22 12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10 21.9997H17C18.8856 21.9997 19.8284 21.9997 20.4142 21.4139C21 20.8281 21 19.8853 21 17.9997V11.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M18 10L18 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7 11H8M7 15H8" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M16 14H17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M16.5 22V18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
        Home
      </a>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <a href="#" class="vt-link vt-link-muted">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
          <path d="M13.6656 6.49446H16C18.8284 6.49446 20.2426 6.49446 21.1213 7.37314C22 8.25182 22 9.66603 22 12.4945V14.5C22 17.3284 22 18.7426 21.1213 19.6213C20.2426 20.5 18.8284 20.5 16 20.5H8C5.17157 20.5 3.75736 20.5 2.87868 19.6213C2 18.7426 2 17.3284 2 14.5V8.99183C2 6.65409 2 5.48521 2.61604 4.67881C2.7778 4.46706 2.96706 4.2778 3.17881 4.11604C3.98521 3.5 5.15409 3.5 7.49183 3.5C8.16633 3.5 8.50358 3.5 8.81392 3.60442C8.8976 3.63257 8.97932 3.66623 9.05854 3.70518C9.35239 3.84965 9.59179 4.08719 10.0706 4.56227L10.8483 5.33389C11.4254 5.9066 11.714 6.19295 12.08 6.3437C12.446 6.49446 12.8525 6.49446 13.6656 6.49446Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
        Category
      </a>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <span class="vt-breadcrumb-current vt-inline-flex vt-items-center vt-gap-1.5">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
          <path d="M8 18H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 14H16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8 10H10" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
        Current Page
      </span>
    </li>
  </ol>
</nav>

Truncated

Long breadcrumb paths are collapsed with an ellipsis to save space.

html
<nav aria-label="Breadcrumb">
  <ol class="vt-breadcrumb">
    <li>
      <a href="#" class="vt-link vt-link-muted">Home</a>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <button type="button" class="vt-btn vt-btn-ghost vt-btn-sm vt-btn-icon" aria-label="Show more breadcrumbs">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
          <path d="M12 12H12.5M19 12H19.5M5 12H5.5M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13ZM19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13ZM5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
      </button>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <a href="#" class="vt-link vt-link-muted">Category</a>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <a href="#" class="vt-link vt-link-muted">Subcategory</a>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <span class="vt-breadcrumb-current">Current Page</span>
    </li>
  </ol>
</nav>

With Dropdown

A breadcrumb item with a dropdown indicator for selecting alternative paths.

html
<nav aria-label="Breadcrumb">
  <ol class="vt-breadcrumb">
    <li>
      <a href="#" class="vt-link vt-link-muted">Home</a>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li class="vt-dropdown-wrap">
      <button type="button" class="vt-link vt-link-muted vt-inline-flex vt-items-center vt-gap-1" data-vt-dropdown-trigger="breadcrumb-dropdown-menu">
        Products
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-3.5 vt-h-3.5" aria-hidden="true">
          <path d="M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
      </button>
      <div class="vt-dropdown-menu" id="breadcrumb-dropdown-menu">
        <a href="#" class="vt-command-item">Electronics</a>
        <a href="#" class="vt-command-item">Clothing</a>
        <a href="#" class="vt-command-item vt-active" aria-current="page">Products</a>
        <a href="#" class="vt-command-item">Accessories</a>
      </div>
    </li>
    <li>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-breadcrumb-separator" aria-hidden="true">
        <path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </li>
    <li>
      <span class="vt-breadcrumb-current">T-Shirts</span>
    </li>
  </ol>
</nav>

Guidelines

Do Mark the current page with breadcrumb-current, not a link.
Don't Don't use a breadcrumb to show flow progress — use a stepper.
Do Collapse deep paths with an ellipsis to keep the trail compact.

API Reference

Class Type Description
vt-breadcrumb Base Horizontal layout for the breadcrumb list (flex, items-center, gap)
vt-linkvt-link-muted Part Each step is a muted system link (vt-breadcrumb-link still works)
vt-breadcrumb-separator Part Chevron (16px) or slash between steps, muted; spaced by the 8px gap of the list
vt-breadcrumb-current State Current page label — primary color, medium weight
vt-hidden State Hides dropdown menu by default

Accessibility

Feature Details
Navigation Wrap in nav element with aria-label="Breadcrumb"
Current page Last item should have aria-current="page"
Separators Visual separators should be aria-hidden="true"
Keyboard All links are focusable and activatable via Enter