@j4hangir/vue-tagged-input
TypeScript icon, indicating that this package has built-in type declarations

3.0.3 • Public • Published

vue-tagged-input

A tags input component for Vue 3 with autocompletion, custom validation, templating and much more

Forked from @sipec/vue3-tags-input

Features

  • No dependencies
  • Custom validation rules
  • Hooks: Before adding, Before deleting ...
  • Edit tags after creation
  • Fast setup
  • Works with Vuex
  • Small size: 34kb minified (css included) | gzipped 9kb
  • Autocompletion
  • Many customization options
  • Own templates
  • Delete tags on backspace
  • Add tags on paste
  • Examples & Docs

Install

NPM

npm install @j4hangir/vue-tagged-input

CDN

<script src="https://unpkg.com/@j4hangir/vue-tagged-input/dist/vue-tagged-input.js"></script>

Usage

<template>
  <div>
      <vue-tagged-input
      v-model="tag"
      :tags="tags"
      @tags-changed="newTags => tags = newTags"
    />
  </div>
</template>
<script lang="ts">
    import {VueTaggedInput} from "@j4hangir/vue-tagged-input";

export default {
  components: {
    VueTaggedInput,
  },
  data() {
    return {
      tag: '',
      tags: [],
    };
  },
};
</script>

Import the css

<style>
    @import "@j4hangir/vue-tagged-input/dist/assets/vue-tagged-input.css";
</style>

License

MIT

Copyright (c) 2023 j4hangir

Package Sidebar

Install

npm i @j4hangir/vue-tagged-input

Weekly Downloads

0

Version

3.0.3

License

MIT

Unpacked Size

232 kB

Total Files

19

Last publish

Collaborators

  • j4hangir