npm install @z2o/buttonReact Button component



``bash`
$ npm install @z2o/button
`javascript
import Button from '@z2o/button'
const c =
React.render(c, container)
`
online example: https://z2o-react.github.io/button/
| name | type | default | description |
| --- | --- | --- | --- |
| prefixCls | string | z2o-button | 类名前缀 |default
| className | string | - | 为 button 添加额外的类名 |
| style | Object | - | 为 button 添加 style |
| type | string | | primary、 danger、 success |medium
| size | string | | large、 small |false
| block | Boolean | | 是否以块级元素的形式展开 |button
| href | string | - | 点击跳转的地址,指定此属性 button 的行为和 a 链接一致 |
| target | string | - | 相当于 a 链接的 target 属性,href 存在时生效 |
| htmlType | string | | 原生的 type 值 |false
| disabled | Boolean | | 禁用 |false
| loading | Boolean | | 是否加载中状态 |false` | 边框有颜色,内部没有颜色 |
| outline | Boolean |
| onClick | (event) => | - | 点击按钮时的回调 |
支持原生 button 的其他所有属性,除了上表中的属性,其它属性都会直接传到原生 button 上。
@z2o/button is released under the MIT license.