A button component for vue
- latest-version : 1.1.0
- vue: 2.x.x
- Install npm packege to your vue-project
$ npm install vue2-button --save
<template>
<Vue2Button>button-name</Vue2Button>
</template>
<script>
import Vue2Button from "vue2-button/src/vue2-button.vue";
export default {
components: {
{ Vue2Button },
},
};
</script>
Name | Type | Default |
---|---|---|
bg-color | String | royalblue |
tx-color | String | white |
<template>
<Vue2Button bg-color="red" tx-color="green">
button-name
</Vue2Button>
</template>