Skip to content

Tag

Used for marking and selection.

Basic usage

Tag basic usage.

Tag Tag

Removable tag

Closable attribute can be used to define a removable tag. It accepts a Boolean. By default the removal of Tag has a fading animation. If you don t want to use it, you can set the disable-transitions attribute, which accepts a Boolean, to true. close event triggers when Tag is removed.

Tag Tag

Edit dynamically

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

Tag 1Tag 2Tag 3

Color

Setting color attribute can define tag text color.

DefaultGreenBlueRedOrange

Themes

Tag provide five different themes: outset、inset、dark、light and plain. Using effect to change, default is outset.

Outset

DefaultGreenBlueRedOrange

Inset

DefaultGreenBlueRedOrange

Light

DefaultGreenBlueRedOrange

Dark

DefaultGreenBlueRedOrange

Plain

DefaultGreenBlueRedOrange

Rounded

Tag can also be rounded like button.

DefaultGreenBlueRedOrange
DefaultGreenBlueRedOrange
DefaultGreenBlueRedOrange
DefaultGreenBlueRedOrange
DefaultGreenBlueRedOrange

Sizes

Besides default size, tu-tag component provides three additional sizes for you to choose among different scenarios. Use attribute size to set additional sizes with mini, small, large.

Mini TagSmall TagMedium TagLarge Tag

Tag API

Tag Attributes

NameDescriptionTypeDefault
closableWhether Tag can be removedBooleanfalse
effectTheme of TagStringoutset
roundWhether Tag is roundedBooleanfalse
colorColor of the TagString-
disable-transitionsWhether to disable animationsBooleanfalse
hitWhether Tag has a highlighted borderBooleanfalse
sizeSize of TagStringmedium

Tag Events

NameDescriptionType
clickTriggers when Tag is clickedFunction
closeTriggers when Tag is removedFunction

Tag Slots

NameDescription
-Customize default content