Button
Terminal-style (TUI) minimal buttons, designed for Catppuccin Mocha.
Button
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 <div style="display: flex; gap: 0.75rem; flex-wrap: wrap;">8 <Button fill="solid" color="primary" design="tuix">solid</Button>9 <Button fill="outline" color="primary" design="tuix">outline</Button>10 <Button fill="clear" color="primary" design="tuix">clear</Button>11</div>12 </TabPanel>13 <TabPanel value="rubik">14 <div style="display: flex; gap: 0.75rem; flex-wrap: wrap;">15 <Button fill="solid" color="primary" design="rubik">solid</Button>16 <Button fill="outline" color="primary" design="rubik">outline</Button>17 <Button fill="clear" color="primary" design="rubik">clear</Button>18</div>19 </TabPanel>20</Tabs>Demo
Color (color)
Semantic color of the button across all available variants.
vue
1<Button color="primary">primary</Button>2<Button color="secondary">secondary</Button>3<Button color="tertiary">tertiary</Button>4<Button color="success">success</Button>5<Button color="warning">warning</Button>6<Button color="danger">danger</Button>7<Button color="light">light</Button>8<Button color="medium">medium</Button>9<Button color="dark">dark</Button>Fill (fill)
Button fill mode: solid, outline or clear.
vue
1<Button fill="solid" color="primary">solid</Button>2<Button fill="outline" color="primary">outline</Button>3<Button fill="clear" color="primary">clear</Button>Icon (icon)
Optional icon or emoji inside the button.
vue
1<Button icon="↖">top-left</Button>2<Button icon="↗">top-right</Button>3<Button icon="↘">bottom-right</Button>4<Button icon="↙">bottom-left</Button>5<Button icon="★">star</Button>Disabled (disabled)
An active button next to a disabled one.
vue
1<Button color="primary">Active</Button>2<Button color="primary" disabled>Disabled</Button>Props
icon
Optional icon or emoji inside the button.
| Type | Default | Required |
|---|---|---|
string | — | ❌ |
disabled
Disables interaction (native disabled, no click emitted).
| Type | Default | Required |
|---|---|---|
boolean | false | ❌ |
fill
Button fill mode: solid, outline or clear.
| Type | Default | Required |
|---|---|---|
'solid' | 'outline' | 'clear' | 'solid' | ❌ |
color
Semantic color of the button.
| Type | Default | Required |
|---|---|---|
'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark' | 'primary' | ❌ |
design
Design line (or inherit from data-design). Lets you pick a visual family independently of the surrounding data-design.
| Type | Default | Required |
|---|---|---|
'tuix' | 'rubik' | — (inherits from data-design) | ❌ |
Events
| Event | Payload | Description |
|---|---|---|
click | MouseEvent | Emitted on click. Not emitted when disabled is true. |
Slots
| Slot | Description |
|---|---|
default | Button label text (rendered next to the icon, if any). |
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. |
--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. |
Ver Theming para la convención completa.