1.1.0 • Published 6 years ago

better-vue-input-tag v1.1.0

Weekly downloads
12
License
MIT
Repository
github
Last release
6 years ago

vue-input-tag

A Better Vue.js 2.0 input tag component inspired in react-tagsinput, an improved version of vue-input-tag

Build Status Version License

Installation

npm install better-vue-input-tag --save

and in your component:

import BetterInputTag from 'better-vue-input-tag'

Usage

<better-input-tag :on-change="callbackMethod" :tags="tagsArray"></better-input-tag>

Props

NameTypeDefaultDescription
tagsArray[]Tags to be render in the input
placeholderString""Placeholder to be shown when no tags
on-paste-delimiterString""During pasting, this delimiter is used to create multiple tags
read-onlyBooleanfalseSet input to readonly
on-changeFunctionundefinedCallback to get the tags when there is a change
validateString""Apply certain validator for user input. Choose from email, url, text, digits or isodate
lengthObjectundefinedSet a minimum and/or maximum length for tags {min: 1, max: 10}

This project was built with generator-vue-component ❤️