# @feizheng/react-ant-filter-dropdown-checkbox

> Filter dropdown for checkbox.

Latest version **1.0.1** (published 2020-04-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @feizheng/react-ant-filter-dropdown-checkbox
pnpm add @feizheng/react-ant-filter-dropdown-checkbox
yarn add @feizheng/react-ant-filter-dropdown-checkbox
bun add @feizheng/react-ant-filter-dropdown-checkbox
```

## 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 | 1.0.1 |
| Published | 2020-04-10 |
| First published | 2020-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |
| Keywords | react, component |

## Links

- npm: https://www.npmjs.com/package/@feizheng/react-ant-filter-dropdown-checkbox
- Repository: https://github.com/afeiship/react-ant-filter-dropdown-checkbox
- Homepage: https://github.com/afeiship/react-ant-filter-dropdown-checkbox#readme
- Issues: https://github.com/afeiship/react-ant-filter-dropdown-checkbox/issues
- npm.io page: https://npm.io/package/@feizheng/react-ant-filter-dropdown-checkbox

## Dependencies (5)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.1
- [@feizheng/noop](https://npm.io/package/@feizheng/noop.md) ^1.0.0
- [@feizheng/next-toggle](https://npm.io/package/@feizheng/next-toggle.md) ^1.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

- 1.0.1 (latest) — 2020-04-10
- 1.0.0 — 2020-04-10

## README

# react-ant-filter-dropdown-checkbox
> Filter dropdown for checkbox.

## installation
```shell
npm install -S @feizheng/react-ant-filter-dropdown-checkbox
```

## update
```shell
npm update @feizheng/react-ant-filter-dropdown-checkbox
```

## properties
| Name          | Type   | Required | Default | Description                           |
| ------------- | ------ | -------- | ------- | ------------------------------------- |
| className     | string | false    | -       | The extended className for component. |
| value         | array  | false    | -       | Default value.                        |
| items         | array  | false    | []      | The dropdown menu items.              |
| selectAllText | any    | false    | '全选'  | Select all text.                      |
| onChange      | func   | false    | noop    | The change handler.                   |


## usage
1. import css
  ```scss
  @import "~@feizheng/react-ant-filter-dropdown-checkbox/dist/style.scss";

  // customize your styles:
  $react-ant-filter-dropdown-checkbox-options: ()
  ```
2. import js
  ```js
  import ReactAntFilterDropdownCheckbox from '@feizheng/react-ant-filter-dropdown-checkbox';
  import ReactDOM from 'react-dom';
  import React from 'react';
  import './assets/style.scss';

  class App extends React.Component {
    state = { value: [] };
    render() {
      const items = [
        { value: 'blank', label: '空白单元格' },
        { value: 'not-filled', label: '未填单元格' },
        { value: 'fixed', label: '已修正' }
      ];
      const { value } = this.state;

      return (
        <div className="app-container">
          <ReactAntFilterDropdownCheckbox
            items={items}
            onChange={(e) => {
              this.setState({ value: e.target.value });
            }}
          />

          <div className="code-container">
            <div className="is-code">
              <pre>
                <code>{JSON.stringify(items, null, 2)}</code>
              </pre>
            </div>
            <div className="is-code">
              <pre>
                <code>{JSON.stringify(value, null, 2)}</code>
              </pre>
            </div>
          </div>
        </div>
      );
    }
  }

  ReactDOM.render(<App />, document.getElementById('app'));

  ```

## documentation
- https://afeiship.github.io/react-ant-filter-dropdown-checkbox/

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