You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-input-tag

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-input-tag

Vue.js input tag editor component

1.0.6
Source
npmnpm
Version published
Weekly downloads
3.1K
-4.25%
Maintainers
1
Weekly downloads
 
Created
Source

vue-input-tag

A Vue.js 2.0 input tag component inspired in react-tagsinput

Codeship Coverage Status Version License Monthly Downloads

Logo

Installation

NPM

npm install vue-input-tag --save

Yarn

yarn add vue-input-tag

Register the component

import InputTag from 'vue-input-tag'
Vue.component('input-tag', InputTag)

Usage

<input-tag :tags.sync="tagsArray"></input-tag>

Props

NameTypeDefaultDescription
tagsArray[]Tags to be render in the input
placeholderString""Placeholder to be shown when no tags
read-onlyBooleanfalseSet input to readonly
addTagOnBlurBooleanfalseAdd tag on input blur
limitString or Number-1 (none)Set a limit for the amount of tags
validateString or Function or Object""Apply certain validator for user input. Choose from email, url, text, digits or isodate. Or pass a function or a RegExp object for custom validation
addTagOnKeysArray[ 13 (return), 188 (comma), 9 (tab) ]Keys that are going to add the new tag
allowDuplicatesBooleanfalseAllow duplicate tags

Keywords

vueinputtag

FAQs

Package last updated on 13 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts