0.0.8 • Published 3 years ago

@j17hernandez/button-component v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

test-vuetify

To generate the dist folder, run the following command

npx vue-cli-service build --target lib --name test-vuetify src/index.js
npm publish --access=public
PropTypeDefaultDescription
colorString''Property for button color
iconBooleanfalseProperty for button icon
textBooleanfalseProperty for button text
outlinedBooleanfalseProperty for button outlined
disabledBooleanfalseProperty for button disabled
roundedBooleanfalseProperty for button rounded
loadingBooleanfalseProperty for button loading
fabBooleanfalseProperty for button fab
roundedBooleanfalseProperty for button rounded
@clickFunctionevent()=>{}Property for button function
@dblclickFunctionevent()=>{}Property for button function

Example

import Vue from "vue";
import { SimpleButton } from '@j17hernandez/button-component'

// You can use this
Vue.component("SimpleButton", SimpleButton);

const app = new Vue({
  el: "#app",
  // Or use components the vue property
  components:{
    SimpleButton
  },
  data: {
    name: 'Simple Button'
  },
  methods: {
      click() {
          console.log('Diste click')
      }
  }
});

In your HTML call it like

<SimpleButton color="primary" @click="click"> {{ name }} </SimpleButton>
0.0.8

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.5

3 years ago