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
colorBaseColorTag color
closablebooleanfalseShow close button
disabledbooleanfalseDisabled state
iconComponentIcon component
avatarstringAvatar image URL
statusBaseColorStatus dot color
legendBaseColorLegend color
badgestring | numberCount badge

TTag Emits

EventDescription
closeClose button clicked

TTagList Props

PropTypeDefaultDescription
optionsTagOption[]Tag options array

TTagList Emits

EventParametersDescription
close(option, index)Tag closed