# bee-input-group

> input-group ui component for react

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

## Install

```sh
npm install bee-input-group
pnpm add bee-input-group
yarn add bee-input-group
bun add bee-input-group
```

## 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.4 |
| Published | 2020-08-13 |
| First published | 2016-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 3 |
| Unpacked size | 21.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yonyou |
| Maintainers | ahua52, banyudu, bjyxszd, guoyongfeng, huayingjie, jonyw, kvkens, liushaozhen, liuyk, npm_yx, tinper-bot, whizbz, yangchch, yonyoufed, zhaoyuchief |
| Keywords | react, react-component, react-input-group, iuap-design, neoui-react, input-group |

## Links

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

## Dependencies (3)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [tinper-bee-core](https://npm.io/package/tinper-bee-core.md) latest
- [bee-input-group-addon](https://npm.io/package/bee-input-group-addon.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.4 (latest) — 2020-08-13
- 2.0.3 — 2019-05-31
- 2.0.2 — 2019-03-22
- 2.0.1 — 2019-03-07
- 2.0.0 — 2019-03-07
- 1.0.7 — 2018-11-21
- 1.0.6 — 2018-11-21
- 1.0.5 — 2018-01-16
- 1.0.4 — 2018-01-12
- 1.0.3 — 2017-10-20
- 1.0.2 — 2017-10-20
- 1.0.1 — 2017-10-20
- 1.0.0 — 2017-10-17
- 0.1.13 — 2017-08-30
- 0.1.12 — 2017-01-13
- … 17 more at https://npm.io/package/bee-input-group/versions

## README

# bee-input-group
[![npm version](https://img.shields.io/npm/v/bee-input-group.svg)](https://www.npmjs.com/package/bee-input-group)
[![Build Status](https://img.shields.io/travis/tinper-bee/bee-input-group/master.svg)](https://travis-ci.org/tinper-bee/bee-input-group)
[![Coverage Status](https://coveralls.io/repos/github/tinper-bee/bee-input-group/badge.svg?branch=master)](https://coveralls.io/github/tinper-bee/bee-input-group?branch=master)


InputGroup 是包装 `FormControl` `InputGroupButton` `InputGroupAddon`的元素，实际应用中 `InputGroupAddon` `InputGroupButton`被集成到InputGroup中使用，格式如：`InputGroup.Addon` `InputGroup.Button`。


## 使用

使用单独的bee-input-group包
#### 组件引入
先进行下载bee-input-group包
```
npm install --save bee-input-group
```
组件调用
```js
import InputGroup from 'bee-input-group';
import Button from 'bee-button'
React.render(<div>
	<InputGroup>
 		<InputGroup.Addon>.00</InputGroup.Addon>
        <FormControl type="text" />
    </InputGroup>
    <InputGroup>
 		<InputGroup.Button>
 			<Button>toggle</Button>
 		</InputGroup.Button>
        <FormControl type="text" />
    </InputGroup>
</div>, document.getElementById('target'));
```
#### 样式引入
- 可以使用link引入dist目录下bee-input-group.css
```
<link rel="stylesheet" href="./node_modules/build/bee-input-group.css">
```
- 可以在js中import样式
```js
import "./node_modules/src/InputGroup.scss"
//或是
import "./node_modules/build/bee-input-group.css"
```





#### 开发调试

```sh
$ git clone https://github.com/tinper-bee/bee-input-group
$ cd bee-input-group
$ npm install
$ npm run dev
```

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