1.0.5 • Published 7 years ago

z-vue-components-simple v1.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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>
1.0.5

7 years ago

1.0.4

7 years ago