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
Theme
Variant
Theme × Variant matrix
Size
Shape
Closable
Disabled
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.
Max-width truncation
Icon slot
Custom color
Pass any valid CSS color. The component derives text and background from the luminance of the value.
CheckTag
YueCheckTag is a role="checkbox" element with v-model controlled and defaultChecked uncontrolled modes.
CheckTag filter group
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