Dashboard
Real-time metrics and system health overview.
A flexible content card with two design lines:
Real-time metrics and system health overview.
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 <Card8 number="// 01"9 category="HERDRATE"10 title="Dashboard"11 description="Real-time metrics and system health overview."12 :tags="['Vue.js', 'TypeScript', 'Tailwind']"13 design="tuix"14 />15 </TabPanel>16 <TabPanel value="rubik">17 <Card18 number="// 01"19 category="HERDRATE"20 title="Dashboard"21 description="Real-time metrics and system health overview."22 :tags="['Vue.js', 'TypeScript', 'Tailwind']"23 design="rubik"24 />25 </TabPanel>26</Tabs>How the card head is filled: the title prop plus the title and header slots.
title) Plain-text heading of the card.
Manage your account settings and preferences.
1<Card title="User Profile" description="Manage your account settings and preferences." />title slot) Replaces the heading text with rich markup.
This card uses a custom title slot.
1<Card description="This card uses a custom title slot.">2 <template #title>3 <strong>Custom</strong> <span style="color:var(--primary)">Title</span>4 </template>5</Card>header slot) Extra header content (e.g. status badges).
All systems operational.
1<Card title="Server Status" description="All systems operational.">2 <template #header>3 <span style="color:var(--success)">●</span> Live4 </template>5</Card>header) Plain-text header content via the header prop. The slot wins if both are provided.
All systems operational.
1<Card title="Server Status" description="All systems operational." header="● Live" />Small labels that identify the card: index, category and tech tags.
number) Monospace index rendered in the card head (e.g. // 03).
Configure application behavior.
1<Card number="// 03" title="Settings" description="Configure application behavior." />category) Uppercase category label, shown next to the index.
REST and GraphQL endpoints documentation.
1<Card category="API" title="Endpoints" description="REST and GraphQL endpoints documentation." />tags) Chip list of tech tags, rendered below the description.
Multi-tenant SaaS platform with real-time collaboration.
1<Card2 title="Project Alpha"3 description="Multi-tenant SaaS platform with real-time collaboration."4 :tags="['Vue 3', 'Pinia', 'PostgreSQL', 'Docker']"5/>default slot) Override the description with rich content.
This description supports HTML and Vue components.
1<Card title="Rich Content">2 <p>This description supports <strong>HTML</strong> and <em>Vue components</em>.</p>3 <ul>4 <li>Item one</li>5 <li>Item two</li>6 <li>Item three</li>7 </ul>8</Card>design) The same card on both lines: tuix (flat, sharp) and rubik (cut corner, soft elevation).
Sharp corners, monospace, flat surfaces.
Cut corners, ink bars, HUD restraint.
1<Card title="TUIX card" description="Sharp corners, monospace, flat surfaces." design="tuix" />2<Card title="Rubik card" description="Cut corners, ink bars, HUD restraint." design="rubik" />Boolean flags that change how the card surface looks.
border) Outline around the card (on by default).
Border is visible by default.
Clean card without outline.
1<Card title="With border" description="Border is visible by default." border />2<Card title="No border" description="Clean card without outline." :border="false" />shadow) shadow applies var(--shadow). tuix defines --shadow: none (flat line), so the prop is only visible on rubik. Both cards below are pinned to rubik — the only difference between them is the shadow.
Explicit shadow prop.
Default (shadow=false).
1<Card title="With shadow" description="Explicit shadow prop." design="rubik" shadow />2<Card title="No shadow" description="Default (shadow=false)." design="rubik" :shadow="false" />arrow) Arrow affordance on the right edge (on by default).
Arrow indicator is shown by default.
Clean right edge.
1<Card title="With arrow" description="Arrow indicator is shown by default." arrow />2<Card title="No arrow" description="Clean right edge." :arrow="false" />footer slot) Extra footer content (e.g. action buttons).
Are you sure you want to proceed?
1<script setup>2import { Button } from '@dowardev/herdrate-vue'3</script>45<Card title="Confirm Action" description="Are you sure you want to proceed?">6 <template #footer>7 <Button color="danger" fill="outline" @click="() => {}">Cancel</Button>8 <Button color="primary" @click="() => {}">Confirm</Button>9 </template>10</Card>footer) Plain-text footer content via the footer prop. The slot wins if both are provided.
Adds the new prop and updates the docs.
1<Card title="Last commit" description="Adds the new prop and updates the docs." footer="updated 2m ago" />hover) Emitted when the pointer enters the card (mouseenter). Consumer decides what to do (e.g. show the border).
1<Card2 title="Hover me"3 description="Open the browser console to see the hover event."4 :border="false"5 @hover="() => console.log('Card hovered!')"6/>Card title (required).
| Type | Default | Required |
|---|---|---|
string | — | ✅ |
Plain-text body content. Overridden by the default slot if provided.
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
Plain-text header content shown before the title. Overridden by the header slot if provided.
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
Plain-text footer content shown at the bottom. Overridden by the footer slot if provided.
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
Monospace index (e.g. // 03).
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
Uppercase label for categorization.
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
Tech chips displayed below the description.
| Type | Default | Required |
|---|---|---|
string[] | — | ❌ |
The design line: tuix (sharp corners, flat) or rubik (cut corners, HUD restraint).
| Type | Default | Required |
|---|---|---|
'tuix' | 'rubik' | inherit | ❌ |
Show or hide the border outline.
| Type | Default | Required |
|---|---|---|
boolean | true | ❌ |
Elevation shadow — flat (none) on tuix, floating on rubik.
| Type | Default | Required |
|---|---|---|
boolean | false | ❌ |
Show the arrow affordance on the right side.
| Type | Default | Required |
|---|---|---|
boolean | true | ❌ |
| Slot | Description |
|---|---|
header | Extra header content |
title | Override the title |
default | Override the description |
footer | Extra footer content |
| Event | Payload | Description |
|---|---|---|
hover | void | Emitted on pointer enter (mouseenter); consumer drives hover behavior |
| 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. |
--bg | from theme (--ctp-latte-base / --ctp-mocha-base) | Base background of the surface. |
--bg-alt | from theme (--ctp-latte-mantle / --ctp-mocha-mantle) | Alternate background (the next layer down from the base). |
--border | from theme (--ctp-latte-surface0 / --ctp-mocha-surface0) | Outline and divider color for surfaces. |
--text | from theme (--ctp-latte-text / --ctp-mocha-text) | Primary text color used inside the component. |
--text-muted | from theme (--ctp-latte-subtext1 / --ctp-mocha-subtext1) | Secondary text for hints, annotations and disabled state. |
--cp-ease | cubic-bezier(.4, 0, .2, 1) | Default easing curve for transitions. |
--shadow | none on TUIX, elevated on rubik | Elevation shadow for raised surfaces. |
--shadow-hover | var(--shadow-hover, var(--shadow)) | Shadow on hover/active state. |
Ver Theming para la convención completa.