Tag

Used for marking and selection.

Basic usage

Removable Tag

Edit Dynamically

You can use the close event to add and remove tag dynamically.

Sizes

Besides default size, Tag component provides three additional sizes for you to choose among different scenarios.

Theme

Tag provide three different themes: darklight and plain

Rounded > 2.1.7

Tag can also be rounded like button.

Checkable tag

Sometimes because of the business needs, we might need checkbox like tag, but button like checkbox cannot meet our needs, here comes check-tag

Tag API

Tag Attributes

NameDescriptionTypeDefault
typetype of Tagenum''
closablewhether Tag can be removedbooleanfalse
disable-transitionswhether to disable animationsbooleanfalse
hitwhether Tag has a highlighted borderbooleanfalse
colorbackground color of the Tagstring''
sizesize of Tagenum''
effecttheme of Tagenumlight
roundwhether Tag is roundedbooleanfalse

Tag Events

NameDescriptionType
clicktriggers when Tag is clickedFunction
closetriggers when Tag is removedFunction

Tag Slots

NameDescription
customize default content

CheckTag API

CheckTag Attributes

NameDescriptionTypeDefault
checked / v-model:checkedis checkedbooleanfalse

CheckTag Events

NameDescriptionType
changetriggers when Check Tag is clickedFunction

CheckTag Slots

NameDescription
customize default content