Skip to content

Tag ​

Tags are used for labelling, categorizing, or representing status. Supports themes, variants, sizes, close buttons, and custom colors. YueCheckTag is the selectable variant for multi-select filter scenarios.

Full API at API reference. Design decisions at Guide.

Basic ​

Basic
Default tag

Theme ​

Theme
DefaultPrimarySuccessWarningDanger

Variant ​

Variants (primary theme)
FilledTintOutlineTint-Outline

Theme × Variant matrix ​

5 themes × 4 variants
defaultdefaultdefaultdefault
primaryprimaryprimaryprimary
successsuccesssuccesssuccess
warningwarningwarningwarning
dangerdangerdangerdanger

Size ​

Size
SmallMediumLarge

Shape ​

Shape
SquareRound

Closable ​

Closable
ClosablePrimaryDanger

Disabled ​

Disabled
DisabledDisabledNo close

Clickable (tag="button") ​

Use tag="button" to give a tag full keyboard and pointer interaction semantics. The @click listener works on any tag, but <button> is the right element when a tag triggers an action.

Clickable

Max-width truncation ​

Max-width truncation
This is a very long tag labelThis label gets truncated at max-width

Icon slot ​

Icon
With icon

Custom color ​

Pass any valid CSS color. The component derives text and background from the luminance of the value.

Custom color
Custom purpleSky tintAmber outlineGreen tint-outline

CheckTag ​

YueCheckTag is a role="checkbox" element with v-model controlled and defaultChecked uncontrolled modes.

CheckTag basic
VueReactAngular (disabled)

CheckTag filter group ​

Multi-select filter
VueReactSvelteSolid

Selected state and theme ​

Unselected it is a neutral chip; selected it uses the palette named by theme (default primary). The four below are really rendered, and verify that the selected palette follows the theme and that hover only emphasises the existing background.

primarysuccesswarningdanger

Variant and theme matrix (live) ​

Every tag below is really rendered: four variants × four themes. The gate asserts >= 4.5:1 text contrast for each in both light and dark, and that the four themes within a variant paint distinct colours (a theme-ignoring stylesheet fails).

filled

primarysuccesswarningdanger

tint

primarysuccesswarningdanger

outline

primarysuccesswarningdanger

tint-outline

primarysuccesswarningdanger