Skip to content

Tag-DEMO ​


vue
<fv-Tag :modelValue="[{text: 'default', type: 'default' }]">
</fv-Tag>

Tag Different Types ​


vue
<fv-Tag :modelValue="[{text: 'default', type: 'default' }, {text: 'success', type: 'success' }, {text: 'warning', type: 'warning' }, {text: 'error', type: 'error' }]" :isDel="true" :isNewTag="true">
</fv-Tag>

Tag Customize Color ​


vue
<fv-Tag :modelValue="[{text: 'blue', type: 'default', background: 'rgba(0, 98, 158, 1)' }, {text: 'black', type: 'success', background: 'rgba(0, 0, 0, 1)' }, {text: 'pink', type: 'warning', background: 'pink' }]">
</fv-Tag>

Tag-Disabled ​

vue
<fv-Tag :modelValue="[{text: 'default', type: 'default' }, {text: 'disabled', type: 'success',  disabled: true }, {text: 'warning', type: 'warning' }]" :isDel="true" :isNewTag="true">
</fv-Tag>

Tag Dark Theme ​


vue
<fv-Tag :modelValue="[{text: 'default', type: 'default' }, {text: 'success', type: 'success' }, {text: 'warning', type: 'warning' }, {text: 'error', type: 'error' }]" theme="dark">
</fv-Tag>

Properties ​


PropertyTypeRequiredDefaultDescription
modelValuearrayNo[]Tag list.
newTagPlaceholderstringNo'New Tag'NewTag Placeholder
sizestringNo''See the Tag size option.
newTagBackgroundanyNonullSee the Tag newTagBackground option.
fontSizenumberNo12Font size.
borderRadiusnumberNo6Border radius.
isNewTagbooleanNofalseWhether to enable NewTag.
isDelbooleanNofalseWhether to enable the delete button.
themestringNo'global'Theme style. Supports global, light, dark, system, and custom.
disabledbooleanNofalseSee the Tag disabled option.
langstringNo"global"See the Tag lang option.

Events ​


EventArgumentsDescription
tag-clickobjectEmitted when a tag is clicked; returns the clicked item.
add-itemobjectEmitted when a tag is added; returns the added item.
del-itemobjectEmitted when a tag is deleted; returns the deleted item.

Slots ​


  1. Default
javascript
<fv-tag>
    Content
</fv-tag>

MIT Licensed