# bee-button

> tinper-bee button ui component for react

Latest version **2.0.20** (published 2020-08-13) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.20 |
| Published | 2020-08-13 |
| First published | 2016-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 3 |
| Unpacked size | 39.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | ahua52, banyudu, bjyxszd, boyuzhou, guoyongfeng, huayingjie, jonyw, kvkens, liushaozhen, liuyk, npm_yx, tinper-bot, whizbz, yangchch, yonyoufed, zhaoyuchief |
| Keywords | react, react-component, bee-button, tinper, bee, button |

## Links

- npm: https://www.npmjs.com/package/bee-button
- Repository: https://github.com/tinper-bee/button
- Issues: https://github.com/tinper-bee/button/issues
- npm.io page: https://npm.io/package/bee-button

## Dependencies (3)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.23.0
- [tinper-bee-core](https://npm.io/package/tinper-bee-core.md) latest

## 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

- 2.0.20 (latest) — 2020-08-13
- 2.0.10-alpha.0 (alpha) — 2019-03-27
- 2.0.19 — 2020-04-23
- 2.0.18 — 2020-04-23
- 2.0.17 — 2020-04-23
- 2.0.16 — 2020-04-23
- 2.0.12 — 2020-04-22
- 2.0.11 — 2019-05-16
- 2.0.10 — 2019-03-27
- 2.0.9 — 2019-03-13
- 2.0.8 — 2019-03-11
- 2.0.7 — 2019-03-07
- 2.0.6 — 2019-03-05
- 2.0.5 — 2019-03-02
- 2.0.4 — 2019-02-28
- … 42 more at https://npm.io/package/bee-button/versions

## README

# button

[![npm version](https://img.shields.io/npm/v/bee-button.svg)](https://www.npmjs.com/package/bee-button)
[![Build Status](https://img.shields.io/travis/tinper-bee/bee-button/master.svg)](https://travis-ci.org/tinper-bee/bee-button)
[![Coverage Status](https://coveralls.io/repos/github/tinper-bee/bee-button/badge.svg?branch=master)](https://coveralls.io/github/tinper-bee/bee-button?branch=master)


react button component for tinper-bee

可定制的按钮组件

## 使用

### 使用单独的button包
#### 组件引入
先进行下载bee-button包
```
npm install --save bee-button
```
组件调用
```js
import Button from 'bee-button';
ReactDOM.render(
        <Button type="primary" size="lg" style={{color: '#000'}}>Button</Button>
        , document.getElementById('target'));
```
#### 样式引入
- 可以使用link引入build目录下Button.css
```
<link rel="stylesheet" href="./node_modules/bee-button/build/Button.css">
```
- 可以在js中import样式
```js
import "./node_modules/bee-button/src/Button.scss"
//或是
import "./node_modules/bee-button/build/Button.css"
```




## API

|参数|说明|类型|默认值|
|:---|:----:|:---:|------:|
|size|按钮大小(`lg` `xg` `md` `sm`)|string|-|
|colors|颜色(primary/secondary/accent/success/info/warning/danger/dark/light/default)|string|''|
|shape|形状(block/border/round/squared/floating/pillRight/pillLeft/icon)|string|''|
|disabled|是否禁用(`disabled` 或 `true` `false`)|boolean|false|
|bordered|是否是边框型(`bordered` 或 `true` `false`)|boolean|false|
|className|增加额外的class|string|''|
|htmlType|html dom 的 type 属性(`submit` `button` `reset`)|string|button|
|style|style 属性|object|''|

#### setup develop environment

```sh
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-button
$ cd bee-button
$ npm install
$ npm run dev
```

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