vue-colorizer-tag

1.0.5 • Public • Published

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

Option Description
v-model String data
color String theme
@emit-error Func to catch error

Catch Error Option

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

Package Sidebar

Install

npm i vue-colorizer-tag

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

5.55 kB

Total Files

4

Last publish

Collaborators

  • crazycoder-io