1.0.5 • Published 3 years ago

vue-colorizer-tag v1.0.5

Weekly downloads
106
License
ISC
Repository
-
Last release
3 years ago

Vue Colorizer Tag Component

Vue Colorizer Tag Component offers the colorful tags to the Vue developers usage.

primary

success

warning

info

danger

Install

npm install vue-colorizer-tag

What Can Be Done

The Vue developers can get the Vue Colorizer Tag Component and give a empty String data as a param to manage the tags. And also can send a theme as a param. The themes list;

Primary

Secondary

Danger

Success

Info

Warning

Example

How to import;

import Tag from 'vue-colorizer-tag'

export default {
    components: {
            appTag: Tag,
    },
    data() {
        return {
            tags: 'vue.js,node.js',
        }
    },
}

How to use;

    <div class="container">
        <app-tag v-model='tags' color='success' />
        {{tags}}
    </div>

Options

OptionDescription
v-modelString data
colorString theme
@emit-errorFunc to catch error

Catch Error Option

    ...
    methods: {
        errorCatch (e) {
            console.error(e);
        }
    }
    <app-tag v-model='tags' @emit-error='errorCatch($event)' />