Skip to content

Tag ​

Inline label for labels and tokens.

Tag

Design lines ​

v1.0.0donependingerroroutlinedraft
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.5rem; flex-wrap: wrap;">8      <Tag color="primary" design="tuix">v1.0.0</Tag>9      <Tag color="success" design="tuix">done</Tag>10      <Tag color="warning" design="tuix">pending</Tag>11      <Tag color="danger" design="tuix">error</Tag>12      <Tag color="secondary" variant="outline" design="tuix">outline</Tag>13      <Tag color="medium" variant="outline" design="tuix">draft</Tag>14    </div>15  </TabPanel>16  <TabPanel value="rubik">17    <div style="display: flex; gap: 0.5rem; flex-wrap: wrap;">18      <Tag color="primary" design="rubik">v1.0.0</Tag>19      <Tag color="success" design="rubik">done</Tag>20      <Tag color="warning" design="rubik">pending</Tag>21      <Tag color="danger" design="rubik">error</Tag>22      <Tag color="secondary" variant="outline" design="rubik">outline</Tag>23      <Tag color="medium" variant="outline" design="rubik">draft</Tag>24    </div>25  </TabPanel>26</Tabs>

Demo ​

Color (color) ​

Color semántico del tag.

primarysecondarytertiarysuccesswarningdangerlightmediumdark
vue
1<Tag color="primary">primary</Tag>2<Tag color="secondary">secondary</Tag>3<Tag color="tertiary">tertiary</Tag>4<Tag color="success">success</Tag>5<Tag color="warning">warning</Tag>6<Tag color="danger">danger</Tag>7<Tag color="light">light</Tag>8<Tag color="medium">medium</Tag>9<Tag color="dark">dark</Tag>

Variante (variant) ​

Estilo de relleno: solid (default) u outline.

solidoutlinesolidoutlinesolidoutlinesolidoutline
vue
1<Tag color="primary">solid</Tag>2<Tag color="primary" variant="outline">outline</Tag>3<Tag color="success">solid</Tag>4<Tag color="success" variant="outline">outline</Tag>5<Tag color="warning">solid</Tag>6<Tag color="warning" variant="outline">outline</Tag>7<Tag color="danger">solid</Tag>8<Tag color="danger" variant="outline">outline</Tag>

Removible (removable) ​

Muestra botón × para cerrar.

vue
1<Tag color="primary" removable>primary</Tag>2<Tag color="success" removable>success</Tag>3<Tag color="warning" removable>warning</Tag>4<Tag color="danger" removable>danger</Tag>

Events ​

EventPayloadDescription
remove—Emitted when removable x is clicked

API ​

PropTypeDefaultDescription
color'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark''primary'Tag color
variant'solid' | 'outline''solid'Fill style
removablebooleanfalseShow x remove button
design'tuix' | 'rubik'— (inherits from data-design)Design line (or inherit from data-design).

Slots ​

SlotDescription
defaultTag content

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.
--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).

Ver Theming para la convención completa.