/vuetify-colorizer

Color component for Vuetify framework

Primary LanguageVueMIT LicenseMIT

npm Greenkeeper badge Build Status codebeat badge codecov

vuetify-colorizer

Color component for Vuetify framework

Installation

# npm
npm install @nsoft/vuetify-colorizer

Using

Import styles

You need to import colorizer style in your main stylesheet file or component. Example of importing in stylus file:

@import '@nsoft/vuetify-colorizer/dist/vuetify-colorizer.css';

Import script

import Vue from 'vue';
import { VColorPickerInput } from '@nsoft/vuetify-colorizer';
import App from './App';

Vue.config.productionTip = false;
Vue.use(VColorPickerInput);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App },
});

Import component locally

import { VColorPickerInput } from '@nsoft/vuetify-colorizer';

export default {
  name: 'app',
  components: {
    VColorPickerInput,
  },
};

Use in template

<template>
  <div id="app">
    <VColorPickerInput/>
  </div>
</template>