npm.io
0.8.10 • Published 8 years ago

vuikit

Licence
MIT
Version
0.8.10
Deps
1
Size
1.2 MB
Vulns
1
Weekly
0

vuikit

NPM version

Install

$ npm install --save vuikit

Usage

import Vue from 'vue'
import Vuikit from 'vuikit'

Vue.use(Vuikit)
<template>
  <vk-button>MyButton</vk-button>
</template>
Smaller Bundle Size

Installing the entire library is useful for prototyping and testing but for production is recommended to cherry pick the desired resources and register them manually.

import { Button as VkButton } from 'vuikit/lib/button'
import { Tooltip as VkTooltip } from 'vuikit/lib/tooltip'

// globally
Vue.component('VkButton', VkButton)
Vue.directive('VkTooltip', VkTooltip) // tooltip is a directive

// or locally
export default {
  components: {
    VkButton
  },
  directives: {
    VkTooltip
  }
}

License

MIT Miljan Aleksic

Keywords