Tag
Component Tag.
Orange
html
<Card>
<Tag text="Orange" />
</Card>Props
iconicon &iconVarianticon variant, in case you have included moreFont Awesomevariants.Vuersatile Componentsonly comes withsolidbundled. (Defaultsolid), (solid,regular,light,thin,duotone,brands).
Orange
html
<Card>
<Tag text="Orange" icon="paint-roller" />
</Card>colortag color. (Defaultgreyscale), (amber,orange,red,pink,purple,blue,turquoise,green,lime,greyscale).
Orange
html
<Card>
<Tag text="Orange" icon="paint-roller" color="orange" />
</Card>sizetag size. (Defaults), (s,m).
Orange
html
<Card>
<Tag text="Orange" icon="paint-roller" color="orange" size="m" />
</Card>showCloseButtonifTagis closable. Emits a@closeevent. Check console for more information.
amber
orange
red
pink
purple
blue
turquoise
green
lime
greyscale
js
const colors = ['amber', 'orange', 'red', 'pink', 'purple', 'blue', 'turquoise', 'green', 'lime', 'greyscale']
const closeColor = (colorToRemove) => {
console.log(colorToRemove)
}html
<Card>
<Tag v-for="color in colors" :key="color" class="mr-xs-2 mb-xs-2" :text="color" icon="paint-roller" :color="color" size="m" showCloseButton @close="closeColor(color)" />
</Card>
Vuersatile Components