vue2-button
v1.1.5
Published
custom button component for vue
Downloads
15
Maintainers
Readme
vue2-button component
A button component for vue
- latest-version : 1.1.0
Support
- vue: 2.x.x
Demo

Installation
- Install npm packege to your vue-project
$ npm install vue2-button --saveUsage/Examples
<template>
<Vue2Button>button-name</Vue2Button>
</template>
<script>
import Vue2Button from "vue2-button/src/vue2-button.vue";
export default {
components: {
{ Vue2Button },
},
};
</script>props ( for customization ):
| Name | Type | Default | |------------|----------|-------------------| | bg-color | String | royalblue | | tx-color | String | white |
How to use props :
<template>
<Vue2Button bg-color="red" tx-color="green">
button-name
</Vue2Button>
</template>