Skip to content

Breadcrumbs

Usage ​

Import Breadcrumbs and BreadcrumbItem from their dedicated entry.

vue
<script setup lang="ts">
import { BreadcrumbItem, Breadcrumbs } from '@astryx-vue/core/Breadcrumbs'
</script>

<template>
  <Breadcrumbs>
    <BreadcrumbItem href="/">
      Home
    </BreadcrumbItem>
    <BreadcrumbItem href="/components">
      Components
    </BreadcrumbItem>
    <BreadcrumbItem is-current>
      Breadcrumbs
    </BreadcrumbItem>
  </Breadcrumbs>
</template>

Best practices ​

GuidancePractice
RecommendedUse semantic <nav> and <ol> markup so screen readers can identify the path.
RecommendedUse is-current for the current page and render it as a <span> with aria-current="page".
RecommendedKeep separators decorative with aria-hidden="true".
Don'tUse overly long labels that wrap awkwardly on small screens.
Don'tMake the current page a clickable link; this creates circular navigation.

Examples ​

Basic

A standard breadcrumb trail using the default text size.

Supporting variant

The supporting variant uses a smaller text size for compact contexts.