z-vue-components-simple
v1.0.5
Published
A Vue.js simple component library
Downloads
1
Readme
vue-components-simple
A simple Vue component library.
This isn't particularly useful, it's used as a demo for how to publish Vue components to NPM!
Installation
npm i --save-dev z-vue-components-simple
Browser
Include the script file, then install the component with Vue.use(VueButton);
e.g.:
<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-components-simple/dist/vue-clock.min.js"></script>
<script type="text/javascript">
Vue.use(VueClock);
</script>
Module
import VueButton from 'vue-button';
import VueCard from 'vue-card';
Usage
Once installed, it can be used in a template as simply as:
<vue-button></vue-button>
<vue-card color="red" content="Sweet Content"></vue-card>