1.0.1 • Published 3 years ago

@shapla/vue-button v1.0.1

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

Shapla Button

A simple button, in different colors, sizes, and states

Table of contents

Installation

npm install --save @shapla/vue-button

Usage

Styles

with SCSS:

import '@shapla/vue-button/src/index.scss';

with CSS:

import '@shapla/vue-button/dist/style.css';

Javascript Instantiation

import ShaplaButton from '@shapla/vue-button';

export default {
  name: 'Hello',

  components: {
    ShaplaButton
  },
  
  methods: {
    handleClick(){
      // Handle click event
    }
  }
}
<shapla-button @click="handleClick"></shapla-button>

Props

PropertyTypeRequiredDefaultDescription
themeStringnodefaultValue can be default or primary or secondary or success or warning or error
sizeStringnonormalValue can be normal or small or medium or large
fullwidthBooleannofalseIf set true, button will take full width.
disabledBooleannofalseIf set true, disabled attribute will be added.
outlineBooleannofalseIf set true, outline style will be used.
roundedBooleannofalseIf set true, rounded style will be used
fabBooleannofalseIf set true, circle style will be used.
shadowBooleannofalseIf set true, box-shadow will be added around button.