## Button ### Install ``` javascript import { Button } from 'vant'; Vue.use(Button); ``` ### Usage #### Type ```html Default Primary Warning Danger ``` #### Plain ```html Default Primary Warning Danger ``` #### Size ```html Large Normal Small Mini ``` #### Disabled ```html Diabled ``` #### Loading ```html ``` #### Custom Tag Use `tag` prop to custom button tag ```html Button ``` ### API | Attribute | Description | Type | Default | |-----------|-----------|-----------|-------------| | type | Can be set to `primary` `warning` `danger` | `String` | `default` | | size | Can be set to `normal` `large` `small` `mini` | `String` | `normal` | | text | Text | `String` | - | | tag | Tag | `String` | `button` | | native-type | Native Type Attribute | `String` | `''` | | plain | Whether to be plain button | `Boolean` | `false` | | disabled | Whether to disable button | `Boolean` | `false` | | loading | Whether show loading status | `Boolean` | `false` | | block | Whether to set display block | `Boolean` | `false` | ### Event | Event | Description | Arguments | |-----------|-----------|-----------| | click | Triggered when click button and not disabled or loading | - |