Skip to content

FormTagsInput ​

Free text turned into removable chips, with separators and paste.

ts
import { FormTagsInput } from '@zairakai/vue-components/Form'

Usage ​

vue
<FormTagsInput />

Example ​

  • one
  • two
vue
<script setup>
  import { ref } from 'vue'

  const tags = ref(['one', 'two'])
</script>

<template>
  <FormTagsInput
    v-model="tags"
    label="Tags"
    placeholder="Type, then Enter or comma"
  />
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
modelValuearrayundefined
separatorsarray[',', ';']The characters that end a tag when typed or pasted, besides Enter.
maxnumber
allowDuplicatesbooleanfalse
labelstring
placeholderstring
namestring
formstring
disabledbooleanfalse
removeLabelstring'Remove'

Events ​

NameDescription
update:modelValue
reject

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.