vuikit
Version:
A responsive Vue UI library for web site interfaces based on UIkit
52 lines (37 loc) • 943 B
Markdown
[](https://npmjs.org/package/vuikit)
```
$ npm install --save vuikit
```
```js
import Vue from 'vue'
import Vuikit from 'vuikit'
Vue.use(Vuikit)
```
```vue
<template>
<vk-button>MyButton</vk-button>
</template>
```
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.
```js
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) © [Miljan Aleksic](https://github.com/miljan-aleksic)