Vue m button

A button component for vue.

Version: 2.0.0 Updated: 08/13/2018

By: mengdu License: MIT

Downloads Last 30 Days: 37

Install

npm i vue-m-button
yarn add vue-m-button

Repository: https://github.com/mengdu/m-button

CDNs

bundle.run: https://bundle.run/vue-m-button

jsDelivr: https://cdn.jsdelivr.net/npm/vue-m-button

unpkg: https://unpkg.com/vue-m-button

Button

A beautiful button component for vue.

中文文档

Live Demo

Use

npm install vue-m-button
import MButton from 'vue-m-button'
// for v1.0.0
// import 'vue-m-button/dist/css/default.css'

Vue.use(MButton)

It will register m-button-groupm-button component.

<m-button>defaut</m-button>

button grounp:

<m-button-group>
  <m-button type="info">Home</m-button>
  <m-button type="info">Hot</m-button>
  <m-button type="info">Special</m-button>
</m-button-group>

Button Attributes

Attribute Description Type Accepted Values Default
size size string max, large, samll, mini
type type string infoprimarywarningdangersuccess
plain plain btton boolean false
round round button boolean false
disabled disabled boolean false
active active state boolean false
effect effect state boolean true
router vue-router route object path

Contributors



lanyue
commits

Dependencies


DevDependencies


Categories: Vue js
Tags: