TipBox
Notification component with icon, title and message.
TipBox
Design lines
Heads up
Disk at 90%.
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 <TipBox title="Heads up" design="tuix">Disk at 90%.</TipBox>8 </TabPanel>9 <TabPanel value="rubik">10 <TipBox title="Heads up" design="rubik">Disk at 90%.</TipBox>11 </TabPanel>12</Tabs>Demo
Basic (type)
Shows semantic color variants with a title and a message.
Information
Operation completed successfully.
Warning
Check the permissions before continuing.
Critical error
Could not connect to the server.
vue
1<TipBox color="primary" title="Information" message="Operation completed successfully." />2<TipBox color="warning" title="Warning" message="Check the permissions before continuing." />3<TipBox color="danger" title="Critical error" message="Could not connect to the server." />Props
color
Semantic color of the border and icon.
| Type | Default | Required |
|---|---|---|
'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark' | 'primary' | ❌ |
title
Optional bold title.
| Type | Default | Required |
|---|---|---|
string | '' | ❌ |
message
Optional descriptive message.
| Type | Default | Required |
|---|---|---|
string | '' | ❌ |
design
Design line (or inherit from data-design).
| Type | Default | Required |
|---|---|---|
'tuix' | 'rubik' | — (inherits from data-design) | ❌ |
Slots
| Slot | Description |
|---|---|
default | Custom content (replaces title/message) |
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. |
--bg | from theme (--ctp-latte-base / --ctp-mocha-base) | Base background of the surface. |
--bg-elevated | from theme (--ctp-latte-surface0 / --ctp-mocha-surface0) | Background of floating surfaces (modals, dropdowns, popovers). |
--bg-panel | from theme (--ctp-latte-surface1 / --ctp-mocha-surface1) | Background of panel-like raised surfaces (cards, accordions). |
--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. |
--color-primary | from theme (--ctp-latte-mauve / --ctp-mocha-mauve) | Primary semantic color (mauve in Catppuccin). |
Ver Theming para la convención completa.