Skip to content

Tag

Selectable or removable tag.

Import

ts
import { Tag, TagGroup, TagRemoveButton } from '@heroui-vue/vue'

Usage

Frameworks
VueReact Svelte

<template>
  <TagGroup label="Frameworks">
    <Tag selected>Vue</Tag>
    <Tag>React</Tag>
    <Tag variant="surface">
      Svelte
      <TagRemoveButton />
    </Tag>
  </TagGroup>
</template>

<script setup>
import { Tag, TagGroup, TagRemoveButton } from '@heroui-vue/vue'
</script>

API

PropTypeDefaultDescription
selectedbooleanfalseMarks the tag selected
variant'default' | 'surface''default'Visual style
size'sm' | 'md' | 'lg''md'Tag size

Released under the Apache-2.0 License.