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.
| Type | Default | Required |
|---|---|---|
Array<{label: string, href?: string}> | [] | ✅ |
Each crumb has this shape:
| Field | Type | Required | Description |
|---|---|---|---|
label | string | ✅ | Visible text |
href | string | ❌ | Optional link |
separator
Character between breadcrumb items.
| Type | Default | Required |
|---|---|---|
string | '/' | ❌ |
color
Color of the last item and link hover.
| Type | Default | Required |
|---|---|---|
'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark' | 'primary' | ❌ |
design
Design line (or inherit from data-design).
| Type | Default | Required |
|---|---|---|
'tuix' | 'rubik' | — (inherits from data-design) | ❌ |
Slots
| Slot | Description |
|---|---|
default | Alternative to items, allows custom markup |
CSS Custom Properties
| Token | Default | Description |
|---|---|---|
--font-mono | "JetBrains Mono", ui-monospace, monospace | Monospace font stack for code-like content (key labels, log lines, chips). |
--accent | from theme (--ctp-latte-mauve / --ctp-mocha-mauve) | Accent color, mapped from the active semantic color. |
--text | from theme (--ctp-latte-text / --ctp-mocha-text) | Primary text color used inside the component. |
Ver Theming para la convención completa.