Skip to content

Table ​

Terminal-style table, alternating rows and compact mode.

Table

Design lines ​

NameRoleStatus
Alice ChenDeveloperActive
Bob MartinezDesignerActive
Charlie KimDevOpsAway
Diana RossQA LeadActive
Eve WilsonPMActive
Frank LeeTech LeadAway
vue
1<Tabs defaultValue="tuix">2  <TabsList>3    <Tab value="tuix">TUIX</Tab>45    <Tab value="rubik">Rubik</Tab>6  </TabsList>78  <TabPanel value="tuix">9    <Table10      :columns="[11        { key: 'name', label: 'Name' },12        { key: 'role', label: 'Role' },13        { key: 'status', label: 'Status' },14      ]"15      :rows="[16        { name: 'Alice Chen', role: 'Developer', status: 'Active' },17        { name: 'Bob Martinez', role: 'Designer', status: 'Active' },18        { name: 'Charlie Kim', role: 'DevOps', status: 'Away' },19        { name: 'Diana Ross', role: 'QA Lead', status: 'Active' },20        { name: 'Eve Wilson', role: 'PM', status: 'Active' },21        { name: 'Frank Lee', role: 'Tech Lead', status: 'Away' },22      ]"23      color="primary"24      striped25      compact26      design="tuix"27    />28  </TabPanel>2930  <TabPanel value="rubik">31    <Table32      :columns="[33        { key: 'name', label: 'Name' },34        { key: 'role', label: 'Role' },35        { key: 'status', label: 'Status' },36      ]"37      :rows="[38        { name: 'Alice Chen', role: 'Developer', status: 'Active' },39        { name: 'Bob Martinez', role: 'Designer', status: 'Active' },40        { name: 'Charlie Kim', role: 'DevOps', status: 'Away' },41        { name: 'Diana Ross', role: 'QA Lead', status: 'Active' },42        { name: 'Eve Wilson', role: 'PM', status: 'Active' },43        { name: 'Frank Lee', role: 'Tech Lead', status: 'Away' },44      ]"45      color="primary"46      striped47      compact48      design="rubik"49    />50  </TabPanel>51</Tabs>

Demo ​

Basic (default) ​

Tabla simple sin props adicionales.

NameRole
AliceDeveloper
BobDesigner
vue
1<Table2  :columns="[3    { key: 'name', label: 'Name' },4    { key: 'role', label: 'Role' },5  ]"6  :rows="[7    { name: 'Alice', role: 'Developer' },8    { name: 'Bob', role: 'Designer' },9  ]"10/>

Striped rows (striped) ​

Mejora la legibilidad en tablas con muchas filas.

#TaskOwner
1Design systemAlice
2API integrationBob
3E2E testsCharlie
4DocumentationDiana
5Deploy to prodEve
#TaskOwner
1Design systemAlice
2API integrationBob
3E2E testsCharlie
4DocumentationDiana
5Deploy to prodEve
vue
1<Table2  :columns="[{ key: 'n', label: '#' }, { key: 'task', label: 'Task' }, { key: 'owner', label: 'Owner' }]"3  :rows="[4    { n: '1', task: 'Design system', owner: 'Alice' },5    { n: '2', task: 'API integration', owner: 'Bob' },6    { n: '3', task: 'E2E tests', owner: 'Charlie' },7    { n: '4', task: 'Documentation', owner: 'Diana' },8    { n: '5', task: 'Deploy to prod', owner: 'Eve' },9  ]"10  striped11/>

Compact (compact) ​

Reduce el padding para vistas densas.

NameRoleTeam
Alice ChenSenior DevFrontend
Bob MartinezDesignerDesign
Charlie KimDevOpsPlatform
Diana RossQA LeadQuality
Eve WilsonPMProduct
Frank LeeTech LeadBackend
NameRoleTeam
Alice ChenSenior DevFrontend
Bob MartinezDesignerDesign
Charlie KimDevOpsPlatform
Diana RossQA LeadQuality
Eve WilsonPMProduct
Frank LeeTech LeadBackend
vue
1<Table2  :columns="[{ key: 'name', label: 'Name' }, { key: 'role', label: 'Role' }, { key: 'team', label: 'Team' }]"3  :rows="[4    { name: 'Alice Chen', role: 'Senior Dev', team: 'Frontend' },5    { name: 'Bob Martinez', role: 'Designer', team: 'Design' },6    { name: 'Charlie Kim', role: 'DevOps', team: 'Platform' },7    { name: 'Diana Ross', role: 'QA Lead', team: 'Quality' },8    { name: 'Eve Wilson', role: 'PM', team: 'Product' },9    { name: 'Frank Lee', role: 'Tech Lead', team: 'Backend' },10  ]"11  compact12/>

Numbered index (indexed) ​

Añade columna # / 01 al inicio.

#NameRole
01Alice ChenDeveloper
02Bob MartinezDesigner
03Charlie KimDevOps
vue
1<Table2  :columns="[{ key: 'name', label: 'Name' }, { key: 'role', label: 'Role' }]"3  :rows="[4    { name: 'Alice Chen', role: 'Developer' },5    { name: 'Bob Martinez', role: 'Designer' },6    { name: 'Charlie Kim', role: 'DevOps' },7  ]"8  indexed9/>

Header color (color) ​

Color de acento de la cabecera.

NameRole
Alice ChenDeveloper
Bob MartinezDesigner
NameRole
Alice ChenDeveloper
Bob MartinezDesigner
NameRole
Alice ChenDeveloper
Bob MartinezDesigner
vue
1<Table :columns="..." :rows="..." color="success" />2<Table :columns="..." :rows="..." color="danger" />3<Table :columns="..." :rows="..." color="warning" />

Combined (all props) ​

Todos los props juntos en una tabla densa.

#IDServiceStatusRegion
011api-gatewayRunningus-east-1
022auth-serviceRunningus-east-1
033user-serviceRunningeu-west-1
044notificationPendingap-southeast-1
055analyticsStoppedus-west-2
066billingRunningeu-central-1
vue
1<Table2  :columns="[...]"3  :rows="[...]"4  striped5  compact6  indexed7  color="primary"8/>

API ​

PropTypeDefaultDescription
columnsArray<{key: string, label: string}>[]Column definitions with key and label
rowsRecord<string, string>[][]Row data keyed by column keys
color'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark''primary'Header border color
stripedbooleanfalseAlternating row background
compactbooleanfalseReduced cell padding
indexedbooleanfalseNumbered index column in both lines
design'tuix' | 'rubik'— (inherits from data-design)Design line (or inherit from data-design).

columns — each column has this shape:

FieldTypeRequiredDescription
keystring✅Column identifier
labelstring✅Visible header

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.
--bgfrom theme (--ctp-latte-base / --ctp-mocha-base)Base background of the surface.
--bg-altfrom theme (--ctp-latte-mantle / --ctp-mocha-mantle)Alternate background (the next layer down from the base).
--bg-elevatedfrom theme (--ctp-latte-surface0 / --ctp-mocha-surface0)Background of floating surfaces (modals, dropdowns, popovers).
--bg-panelfrom theme (--ctp-latte-surface1 / --ctp-mocha-surface1)Background of panel-like raised surfaces (cards, accordions).
--borderfrom theme (--ctp-latte-surface0 / --ctp-mocha-surface0)Outline and divider color for surfaces.
--textfrom theme (--ctp-latte-text / --ctp-mocha-text)Primary text color used inside the component.
--text-mutedfrom theme (--ctp-latte-subtext1 / --ctp-mocha-subtext1)Secondary text for hints, annotations and disabled state.
--color-primaryfrom theme (--ctp-latte-mauve / --ctp-mocha-mauve)Primary semantic color (mauve in Catppuccin).
--color-secondaryfrom theme (--ctp-latte-lavender / --ctp-mocha-lavender)Secondary semantic color (lavender in Catppuccin).
--color-tertiaryfrom theme (--ctp-latte-blue / --ctp-mocha-blue)Tertiary semantic color (blue in Catppuccin).
--color-successfrom theme (--ctp-latte-green / --ctp-mocha-green)Success semantic color (green in Catppuccin).
--color-warningfrom theme (--ctp-latte-yellow / --ctp-mocha-yellow)Warning semantic color (yellow in Catppuccin).
--color-dangerfrom theme (--ctp-latte-red / --ctp-mocha-red)Danger semantic color (red in Catppuccin).
--color-lightfrom theme (--ctp-latte-surface1 / --ctp-mocha-rosewater)Light semantic color (lighter contrast tone).
--color-mediumfrom theme (--ctp-latte-overlay0 / --ctp-mocha-overlay2)Medium semantic color (mid-tone).
--color-darkfrom theme (--ctp-latte-text / --ctp-mocha-subtext1)Dark semantic color (high contrast text).
--cp-easecubic-bezier(.4, 0, .2, 1)Default easing curve for transitions.

Ver Theming para la convención completa.