1.0.1 • Published 4 years ago
@shapla/vue-button v1.0.1
Shapla Button
A simple button, in different colors, sizes, and states
Table of contents
Installation
npm install --save @shapla/vue-buttonUsage
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
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
theme | String | no | default | Value can be default or primary or secondary or success or warning or error |
size | String | no | normal | Value can be normal or small or medium or large |
fullwidth | Boolean | no | false | If set true, button will take full width. |
disabled | Boolean | no | false | If set true, disabled attribute will be added. |
outline | Boolean | no | false | If set true, outline style will be used. |
rounded | Boolean | no | false | If set true, rounded style will be used |
fab | Boolean | no | false | If set true, circle style will be used. |
shadow | Boolean | no | false | If set true, box-shadow will be added around button. |