Skip to content

Breadcrumbs ​

Terminal-style breadcrumb navigation with semantic colors and a slot for custom content.

Breadcrumbs

Design lines ​

vue
1<Tabs defaultValue="tuix">2  <TabsList>3    <Tab value="tuix">TUIX</Tab>4    <Tab value="rubik">Rubik</Tab>5  </TabsList>6  <TabPanel value="tuix">7    <Breadcrumbs :items="[{ label: 'Home', href: '/' }, { label: 'Docs' }]" design="tuix" />8  </TabPanel>9  <TabPanel value="rubik">10    <Breadcrumbs :items="[{ label: 'Home', href: '/' }, { label: 'Docs' }]" design="rubik" />11  </TabPanel>12</Tabs>

Demo ​

Items (items) ​

One entry rendered per object in items, with optional href.

vue
1<script setup lang="ts">2import { Breadcrumbs } from '@dowardev/herdrate-vue'34const items = [5  { label: 'Home' },6  { label: 'Documents', href: '/docs' },7  { label: 'Report' },8]9</script>1011<template>12  <div style="display:flex;flex-direction:column;gap:0.5rem;">13    <Breadcrumbs :items="items" />14    <Breadcrumbs separator="›" :items="[15      { label: 'Home' },16      { label: 'Projects' },17      { label: 'Dashboard' },18    ]" />19    <Breadcrumbs color="success" :items="[20      { label: 'Root' },21      { label: 'Deploy' },22      { label: 'Live' },23    ]" />24  </div>25</template>

Separator (separator) ​

Three different separator characters between the same items.

vue
1<Breadcrumbs separator="/" :items="[{ label: 'A' }, { label: 'B' }, { label: 'C' }]" />2<Breadcrumbs separator="›" :items="[{ label: 'A' }, { label: 'B' }, { label: 'C' }]" />3<Breadcrumbs separator="→" :items="[{ label: 'A' }, { label: 'B' }, { label: 'C' }]" />

Props ​

items ​

Array of crumbs.

TypeDefaultRequired
Array<{label: string, href?: string}>[]✅

Each crumb has this shape:

FieldTypeRequiredDescription
labelstring✅Visible text
hrefstring❌Optional link

separator ​

Character between breadcrumb items.

TypeDefaultRequired
string'/'❌

color ​

Color of the last item and link hover.

TypeDefaultRequired
'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark''primary'❌

design ​

Design line (or inherit from data-design).

TypeDefaultRequired
'tuix' | 'rubik'— (inherits from data-design)❌

Slots ​

SlotDescription
defaultAlternative to items, allows custom markup

CSS Custom Properties ​

TokenDefaultDescription
--font-mono"JetBrains Mono", ui-monospace, monospaceMonospace font stack for code-like content (key labels, log lines, chips).
--accentfrom theme (--ctp-latte-mauve / --ctp-mocha-mauve)Accent color, mapped from the active semantic color.
--textfrom theme (--ctp-latte-text / --ctp-mocha-text)Primary text color used inside the component.

Ver Theming para la convención completa.