Skip to content

Tag ​

Tag component for displaying closable, colored, icon, and badge tags.


Basic ​

vue

<TTag label="Tag 1" closable />

Colored ​

With Icon ​

With Badge ​

TTagList ​


API ​

TTag Props ​

PropTypeDefaultDescription
labelstring''Tag text
colorBaseColor—Tag color
closablebooleanfalseShow close button
disabledbooleanfalseDisabled state
iconComponent—Icon component
avatarstring—Avatar image URL
statusBaseColor—Status dot color
legendBaseColor—Legend color
badgestring | number—Count badge

TTag Emits ​

EventDescription
closeClose button clicked

TTagList Props ​

PropTypeDefaultDescription
optionsTagOption[]—Tag options array

TTagList Emits ​

EventParametersDescription
close(option, index)Tag closed