# @ahwui/react-select

> Select component

Latest version **0.0.3** (published 2021-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ahwui/react-select
pnpm add @ahwui/react-select
yarn add @ahwui/react-select
bun add @ahwui/react-select
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-06-05 |
| First published | 2021-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 42.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | uub |
| Maintainers | uub |
| Keywords | react, react-select, react select, ahwui react-select, ahwui react select, ahwui select |

## Links

- npm: https://www.npmjs.com/package/@ahwui/react-select
- Repository: https://github.com/ybuiw/ahwui
- Homepage: https://github.com/ybuiw/ahwui#readme
- Issues: https://github.com/ybuiw/ahwui/issues
- npm.io page: https://npm.io/package/@ahwui/react-select

## Dependencies (1)

- [@ant-design/icons](https://npm.io/package/@ant-design/icons.md) ^4.5.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.0.3 (latest) — 2021-06-05
- 0.0.2 — 2021-03-18
- 0.0.1 — 2021-03-18

## README

react Select 下拉框
===
自定义下拉框。

### 安装

```bash
npm install --save @ahwui/react-select
```

### 引入

```jsx
import Select from '@ahwui/react-select';
```

### 基本用法

<!--DemoStart,bgWhite,codePen,codeSandbox--> 
```js
import ReactDOM from 'react-dom';
import Select from '@ahwui/react-select';

const { Option } = Select;

ReactDOM.render(
  <div>
    <Select defaultValue="3" placeholder="请选择">
      <Option value="1">111</Option>
      <Option value="2" disabled>222</Option>
      <Option value="3">333</Option>
      <Option value="4">444</Option>
    </Select>
  </div>,
  _mount_
);
```
<!--End-->

## Props Select

| 参数 | 说明 | 类型 | 默认值 |
| -------- | -------- | -------- | -------- |
| defaultValue | 默认值 | string | -- |
| isPos | 是否处于悬浮状态 | boolean | false |
| allowClear | 清除 | boolean | false |
| onChange | 选中时调用 | function(string) | -- |

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