Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

uxcore-button

uxcore203MIT0.4.21

uxcore-button ui component for react

react, react-component, react-uxcore-button, uxcore-button

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 是否禁用(disabledtrue 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

changelog

History


0.4.21

  • NEW prop type support new value text

0.4.20

  • CHANGED do not excute onClick while loading
  • NEW add count down feature

0.4.19

  • CHANGED support providing style by js

0.4.18

  • CHANEGD adapt React@16

0.4.17

  • CHANGED unify prop size enumerator naming (from medium to middle)

0.4.16

  • NEW add new prop danger
  • Deprecated Button.ButtonGroup

0.4.15

CHANGED fit React@15

0.4.12

  • NEW support new prop ghost
  • CHANGED prop type support new value white

0.4.11

  • CHANGED change loading icon
  • CHANGED add icon button adaption

0.4.9

  • FIX hotfix svg bug

0.4.8

  • FEAT support 'loading' prop

0.4.7

CHANGED use normal component declaration instead of stateless function (#7)

0.4.6

  • CHANGED new scaffold & eslint
  • REMOVE useless source file

0.4.5

NEW add new prop style

0.4.4

NEW add new prop htmlType

0.4.3

FIX remove peer denpendency react

0.4.2

FIX fix ve prototype typo

0.4.1

NEW add visual engine support

0.4.0

NEW style change to new standard

0.3.12

CHANGED update scaffold

0.3.5

FIXED add react require declare

0.3.3

CHANGED change props additionClass to className

0.3.2

CHANGED change style

0.3.1

CHANGED upgrade to react@0.14

0.3.0

CHANGED remove color prop; NEW type prop;

0.2.0

CHNAGED remove export buttonGroup

0.1.4

fixed ie8 compatibility bug changed to new scaffold

0.1.3

fixed 无法在button上添加事件