1.0.3 • Published 6 years ago

ss-directives v1.0.3

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

ss-simple-button

A simple VueJS button component.

Installation

npm i ss-simple-button

Module

import button from 'ss-simple-button';

Usage

Once installed, it can be used in a template:

<ss-button label="My button" class="button" :onClick="alertClick"></ss-button>
<ss-button label="Second button" :onClick="alertClick2"></ss-button>
import Button from 'ss-simple-button'

export default {
  components: {
    'ss-button': Button
  },
  methods: {
    alertClick() {
      alert('Button clicked')
    },
    alertClick2() {
      alert('Second button clicked')
    }
  }
}
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago