Tokens v2.14.0 release notes Published
GhostBreadcrumb reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed wrappers for GhostBreadcrumb compound parts. Importing any part loads ghost-breadcrumb.css via default.css.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
None declared.
Emits
None declared.
Models
None declared.
Slots
None declared.
Exposed members
None declared.
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | list | Horizontal ordered trail list. |
data-part | link | Ancestor breadcrumb hyperlink. |
data-part | page | Current page segment. |
data-part | separator | Decorative separator glyph. |
data-part | ellipsis | Collapsed-segment disclosure trigger. |
CSS variables
None declared.
Accessibility
Role: navigation. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/.
Required ARIA attributes: aria-label, aria-current.
Keyboard
None declared.
Verification
Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
breadcrumb/workspace-trail
Workspace breadcrumb trail
Themed breadcrumb trail with collapsed parent segments above a release header.
workspace-trail.vue
vue
<script setup lang="ts">
import {
GhostBadge,
GhostBreadcrumb,
GhostBreadcrumbEllipsis,
GhostBreadcrumbItem,
GhostBreadcrumbLink,
GhostBreadcrumbList,
GhostBreadcrumbPage,
GhostBreadcrumbSeparator,
GhostCard,
} from '@ghostvue/themes'
</script>
<template>
<div class="breadcrumb-showcase">
<GhostCard>
<div class="breadcrumb-showcase__body">
<GhostBreadcrumb aria-label="Project location">
<GhostBreadcrumbList>
<GhostBreadcrumbItem>
<GhostBreadcrumbLink href="#workspace">
Northwind
</GhostBreadcrumbLink>
<GhostBreadcrumbSeparator />
</GhostBreadcrumbItem>
<GhostBreadcrumbItem>
<GhostBreadcrumbEllipsis label="Show parent folders">
<GhostBreadcrumbLink href="#engineering">
Engineering
</GhostBreadcrumbLink>
<GhostBreadcrumbLink href="#design-systems">
Design Systems
</GhostBreadcrumbLink>
<GhostBreadcrumbLink href="#tokens">
Tokens
</GhostBreadcrumbLink>
</GhostBreadcrumbEllipsis>
<GhostBreadcrumbSeparator />
</GhostBreadcrumbItem>
<GhostBreadcrumbItem>
<GhostBreadcrumbLink href="#releases">
Releases
</GhostBreadcrumbLink>
<GhostBreadcrumbSeparator />
</GhostBreadcrumbItem>
<GhostBreadcrumbItem>
<GhostBreadcrumbPage>v2.14.0</GhostBreadcrumbPage>
</GhostBreadcrumbItem>
</GhostBreadcrumbList>
</GhostBreadcrumb>
<div class="breadcrumb-showcase__header">
<span class="breadcrumb-showcase__title">
Tokens v2.14.0 release notes
</span>
<GhostBadge tone="success" variant="soft" size="sm">
Published
</GhostBadge>
</div>
</div>
</GhostCard>
</div>
</template>
<style scoped>
.breadcrumb-showcase {
display: grid;
}
.breadcrumb-showcase__body {
display: grid;
gap: var(--ghost-space-gap-sm);
}
.breadcrumb-showcase__header {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: var(--ghost-space-gap-sm);
justify-content: space-between;
}
.breadcrumb-showcase__title {
color: var(--ghost-text-default);
font-size: var(--ghost-type-size-md);
font-weight: var(--ghost-type-weight-semibold);
line-height: var(--ghost-type-line-snug);
}
</style>
breadcrumb/basic
Basic Headless
Headless ordered trail with current page semantics, laid out by consumer CSS on data-part hooks.
basic.vue
vue
<script setup lang="ts">
import {
GhostBreadcrumb,
GhostBreadcrumbItem,
GhostBreadcrumbLink,
GhostBreadcrumbList,
GhostBreadcrumbPage,
GhostBreadcrumbSeparator,
} from '@ghostvue/vue'
</script>
<template>
<div class="breadcrumb-demo">
<GhostBreadcrumb aria-label="Project trail">
<GhostBreadcrumbList>
<GhostBreadcrumbItem>
<GhostBreadcrumbLink href="#">Home</GhostBreadcrumbLink>
<GhostBreadcrumbSeparator />
</GhostBreadcrumbItem>
<GhostBreadcrumbItem>
<GhostBreadcrumbLink href="#">Projects</GhostBreadcrumbLink>
<GhostBreadcrumbSeparator />
</GhostBreadcrumbItem>
<GhostBreadcrumbItem>
<GhostBreadcrumbPage>GhostVue</GhostBreadcrumbPage>
</GhostBreadcrumbItem>
</GhostBreadcrumbList>
</GhostBreadcrumb>
</div>
</template>
<!--
The headless parts render semantic markup only. This consumer CSS lays the
trail out inline and styles the parts through their data-part hooks; the
system-color fallbacks keep it readable without a theme.
-->
<style>
.breadcrumb-demo [data-part='list'] {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
list-style: none;
margin: 0;
padding: 0;
}
.breadcrumb-demo [data-part='item'] {
align-items: center;
display: inline-flex;
gap: 0.25rem;
margin: 0;
}
.breadcrumb-demo [data-part='link'] {
color: var(--ghost-text-primary, LinkText);
}
.breadcrumb-demo [data-part='link']:focus-visible {
outline: var(--ghost-focus-ring-width, 2px) solid
var(--ghost-focus-ring-color, Highlight);
outline-offset: 2px;
}
.breadcrumb-demo [data-part='separator'] {
color: var(--ghost-text-muted, GrayText);
}
.breadcrumb-demo [data-part='page'] {
color: var(--ghost-text-default, CanvasText);
font-weight: 600;
}
</style>
breadcrumb/collapsed
Collapsed segments
Ellipsis popover exposes middle ancestors.
collapsed.vue
vue
<script setup lang="ts">
import {
GhostBreadcrumb,
GhostBreadcrumbEllipsis,
GhostBreadcrumbItem,
GhostBreadcrumbLink,
GhostBreadcrumbList,
GhostBreadcrumbPage,
GhostBreadcrumbSeparator,
} from '@ghostvue/themes'
</script>
<template>
<GhostBreadcrumb aria-label="Settings trail">
<GhostBreadcrumbList>
<GhostBreadcrumbItem>
<GhostBreadcrumbLink href="#">Home</GhostBreadcrumbLink>
<GhostBreadcrumbSeparator />
</GhostBreadcrumbItem>
<GhostBreadcrumbItem>
<GhostBreadcrumbEllipsis label="Show hidden segments">
<GhostBreadcrumbLink href="#">Products</GhostBreadcrumbLink>
<GhostBreadcrumbLink href="#">Catalog</GhostBreadcrumbLink>
<GhostBreadcrumbLink href="#">Releases</GhostBreadcrumbLink>
</GhostBreadcrumbEllipsis>
<GhostBreadcrumbSeparator />
</GhostBreadcrumbItem>
<GhostBreadcrumbItem>
<GhostBreadcrumbLink href="#">Components</GhostBreadcrumbLink>
<GhostBreadcrumbSeparator />
</GhostBreadcrumbItem>
<GhostBreadcrumbItem>
<GhostBreadcrumbPage>Breadcrumb</GhostBreadcrumbPage>
</GhostBreadcrumbItem>
</GhostBreadcrumbList>
</GhostBreadcrumb>
</template>