Since 1.0.0BETA

Tag

Categories and labels

This page was migrated by AI, please review carefully

Migration is complete, but please validate against source code and manual review.

Tag

Small labels for categories, status, and context.
Status: Beta

Demo

Tags

Color and size variations

Demo will load when visible.
<template>
  <TxTag label="Default" />
  <TxTag label="Success" color="var(--tx-color-success)" />
  <TxTag label="Warning" color="var(--tx-color-warning)" />
  <TxTag label="Danger" color="var(--tx-color-danger)" />
</template>

API (Lite)

PropertyTypeDefaultDescription
label-Label text
color-Primary text/icon color
backgroundCustom background color
borderCustom border color
iconLeading icon class
sizesmmdSize
closableShow close button
disabledDisable click and close events

Contract

Tag renders with role="status". The default slot replaces label. The close button stops propagation, so closing a tag does not also emit the tag click event. Disabled tags block both click and close.

Composite Patterns

Tag + Button

Tags paired with actions.

Demo will load when visible.
<template>
  <TxTag label="Beta" />
  <TxButton size="sm">Upgrade</TxButton>
</template>