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