Package Exports
- uxcore-button
- uxcore-button/style
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uxcore-button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
uxcore-button
TL;DR
button ui component for react
setup develop environment
$ git clone https://github.com/uxcore/uxcore-button
$ cd uxcore-button
$ npm install
$ npm start
demo
http://uxcore.github.io/uxcore/css/button/
API
PROPS
Button
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
size | 按钮大小(large middle small ) |
string | medium |
type | 类型(primary secondary outline white text ) |
string | primary |
disabled | 是否禁用(disabled 或 true false ) |
string | false |
ghost | 是否显示为幽灵按钮 | bool | false |
danger | 是否显示为危险按钮 | bool | false |
className | 增加额外的class | string | '' |
htmlType | html dom 的 type 属性(submit button reset ) |
string | button |
style | style 属性 | object | |
loading | loading状态, loading 为 true 时不会触发 onClick 动作 | bool | false |
countDown | 按钮倒计时功能,单位为秒(s),倒计时结束之后会触发onCountDownEnd 回调函数 |
number | undefined |
onCountDownEnd | 倒计时结束之后的回调函数 | function | noop |