# @z2o/checkbox

> React checkbox component

Latest version **1.0.0** (published 2019-07-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @z2o/checkbox
pnpm add @z2o/checkbox
yarn add @z2o/checkbox
bun add @z2o/checkbox
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-07-24 |
| First published | 2019-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lishuaishuai |
| Maintainers | li-shuaishuai |
| Keywords | react, react-component, react-checkbox, checkbox, @z2o |

## Links

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

## Dependencies (2)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.5.5

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

- 1.0.0 (latest) — 2019-07-24

## README

# checkbox

React checkbox component

[![](https://img.shields.io/npm/v/@z2o/checkbox.svg)](https://www.npmjs.com/package/@z2o/checkbox)
[![](https://img.shields.io/npm/dm/@z2o/checkbox.svg)](https://www.npmjs.com/package/@z2o/checkbox)
[![](https://img.shields.io/github/license/z2o-react/checkbox.svg)](https://github.com/z2o-react/checkbox/blob/master/LICENSE)

## Install

```bash
$ npm install @z2o/checkbox
```

## Usage

```javascript
import Checkbox from '@z2o/checkbox'

const c = <Checkbox>default</Checkbox>
React.render(c, container)
```

## Example

online example: [https://z2o-react.github.io/checkbox/](https://z2o-react.github.io/checkbox/)

## API

| name           | type       | default        | description                             |
| -------------- | ---------- | -------------- | --------------------------------------- |
| prefixCls      | string     | `z2o-checkbox` | 自定义类名前缀                          |
| className      | string     | -              | 自定义额外类名                          |
| style          | Object     | -              | 添加额外样式                            |
| checked        | Boolean    | `false`        | 指定当前是否选中                        |
| defaultChecked | Boolean    | `false`        | 初始是否选中                            |
| disabled       | Boolean    | `false`        | 组件禁用状态                            |
| indeterminate  | Boolean    | `false`        | 设置 indeterminate 状态，只负责样式控制 |
| size           | string     | `medium`       | `large` 、`small`            |
| onChange       | (event) => | -              | 变化时回调函数                          |

## License

@z2o/checkbox is released under the MIT license.

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