# uxcore-button

> uxcore-button ui component for react

Latest version **0.4.21** (published 2019-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install uxcore-button
pnpm add uxcore-button
yarn add uxcore-button
bun add uxcore-button
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.21 |
| Published | 2019-01-21 |
| First published | 2015-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 36.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | vincent.bian |
| Maintainers | eternalsky, ex90rts, surfacew, taoqili, vincent.bian |
| Keywords | react, react-component, react-uxcore-button, uxcore-button |

## Links

- npm: https://www.npmjs.com/package/uxcore-button
- Repository: https://github.com/uxcore/uxcore-button
- Homepage: https://github.com/uxcore/uxcore-button#readme
- Issues: http://github.com/uxcore/button/issues
- npm.io page: https://npm.io/package/uxcore-button

## Dependencies (4)

- [kuma-base](https://npm.io/package/kuma-base.md) 1.x
- [classnames](https://npm.io/package/classnames.md) ^2.1.2
- [prop-types](https://npm.io/package/prop-types.md) 15.x
- [object-assign](https://npm.io/package/object-assign.md) ^4.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.4.21 (latest) — 2019-01-21
- 0.4.20 — 2018-12-29
- 0.4.19 — 2018-08-01
- 0.4.18 — 2018-06-14
- 0.4.17 — 2018-03-05
- 0.4.16 — 2017-12-07
- 0.4.15 — 2017-10-25
- 0.4.14 — 2017-04-28
- 0.4.13 — 2017-04-28
- 0.4.12 — 2017-04-28
- 0.4.11 — 2017-04-06
- 0.4.10 — 2017-03-06
- 0.4.9 — 2017-03-03
- 0.4.8 — 2017-03-03
- 0.4.7 — 2017-02-21
- … 23 more at https://npm.io/package/uxcore-button/versions

## README

# uxcore-button

---

## TL;DR

button ui component for react

#### setup develop environment

```sh
$ 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|

---
_Source: https://npm.io/package/uxcore-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
