## Button ### Install ``` javascript import { Button } from 'vant'; Vue.component(Button.name, Button); ``` ### Usage #### Type :::demo Type ```html Default Primary Danger ``` ::: #### Size :::demo Size ```html Large Normal Small Mini ``` ::: #### Disabled :::demo Disabled ```html Diabled ``` ::: #### Loading :::demo Loading ```html ``` ::: #### Custom Tag Use `tag` prop to custom button tag :::demo Custom Tag ```html Button ``` ::: #### Action Button :::demo Action Button ```html Text Text Text ``` ::: ### API | Attribute | Description | Type | Default | Accepted Values | |-----------|-----------|-----------|-------------|-------------| | type | Type | `String` | `default` | `primary` `danger` | | size | Size | `String` | `normal` | `large` `small` `mini` | | tag | Tag | `String` | `button` | - | | nativeType | Native Type Attribute | `String` | `''` | - | | diabled | Whether disable button | `Boolean` | `false` | - | | loading | Whether show loading status | `Boolean` | `false` | - | | block | Whether to set display block | `Boolean` | `false` | - | | bottomAction | Whether to be action button | `Boolean` | `false` | - |