# @jswork/react-ant-editable-tag-group

> Editable tag group for ant.

Latest version **1.0.5** (published 2021-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jswork/react-ant-editable-tag-group
pnpm add @jswork/react-ant-editable-tag-group
yarn add @jswork/react-ant-editable-tag-group
bun add @jswork/react-ant-editable-tag-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 | 1.0.5 |
| Published | 2021-11-12 |
| First published | 2021-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 30.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | afei |
| Maintainers | afeiship |
| Keywords | react, ant, antd, editable, tag, group |

## Links

- npm: https://www.npmjs.com/package/@jswork/react-ant-editable-tag-group
- Repository: https://github.com/afeiship/react-ant-editable-tag-group
- Homepage: https://github.com/afeiship/react-ant-editable-tag-group#readme
- Issues: https://github.com/afeiship/react-ant-editable-tag-group/issues
- npm.io page: https://npm.io/package/@jswork/react-ant-editable-tag-group

## Dependencies (5)

- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [@jswork/noop](https://npm.io/package/@jswork/noop.md) ^1.0.0
- [@jswork/next-unique](https://npm.io/package/@jswork/next-unique.md) ^1.0.0
- [react-input-autosize](https://npm.io/package/react-input-autosize.md) ^3.0.0
- [@jswork/react-interactive-list](https://npm.io/package/@jswork/react-interactive-list.md) ^1.1.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2021-11-12
- 1.0.4 — 2021-10-17
- 1.0.3 — 2021-09-04
- 1.0.2 — 2021-07-03
- 1.0.1 — 2021-06-10
- 1.0.0 — 2021-02-26

## README

# react-ant-editable-tag-group
> Editable tag group for ant.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```shell
npm install -S @jswork/react-ant-editable-tag-group
```

## properties
| Name      | Type   | Required | Default | Description                                 |
| --------- | ------ | -------- | ------- | ------------------------------------------- |
| className | string | false    | -       | The extended className for component.       |
| value     | array  | false    | []      | Default value.                              |
| onChange  | func   | false    | noop    | The change handler.                         |
| min       | number | false    | 0       | The minimum tag number.                     |
| max       | number | false    | 20      | The maximum tags number.                    |
| quick     | bool   | false    | false   | If use keymap `enter` key to quick add tag. |
| readOnly  | bool   | false    | -       | If set readOnly.                            |
| disabled  | bool   | false    | -       | If set disabed.                             |


## usage
1. import css
  ```scss
  @import "~@jswork/react-ant-editable-tag-group/dist/style.css";

  // or use sass
  @import "~@jswork/react-ant-editable-tag-group/dist/style.scss";

  // customize your styles:
  $react-ant-editable-tag-group-options: ()
  ```
2. import js
  ```js
  import ReactDemokit from '@jswork/react-demokit';
  import React from 'react';
  import ReactDOM from 'react-dom';
  import ReactAntEditableTagGroup from '@jswork/react-ant-editable-tag-group';
  import './assets/style.scss';

  class App extends React.Component {
    state = {
      items: ['tag1', 'tag2', 'tag3']
    };

    onRandom = (inEvent) => {
      const random = Math.floor(Math.random() * 10);
      const items = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
      const _items = items.slice(0, random);
      this.setState({ items: _items });
    };

    render() {
      const { items } = this.state;
      return (
        <ReactDemokit
          className="p-3 app-container"
          url="https://github.com/afeiship/react-ant-editable-tag-group">
          <p>
            <button className="button is-primary is-fullwidth" onClick={this.onRandom}>Set Random Items</button>
          </p>
          <ReactAntEditableTagGroup
            quick
            value={items}
            onChange={(e) => {
              console.log(e.target.value);
              this.setState({ items: e.target.value });
            }}
          />
        </ReactDemokit>
      );
    }
  }

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

  ```

## documentation
- https://afeiship.github.io/react-ant-editable-tag-group/


## license
Code released under [the MIT license](https://github.com/afeiship/react-ant-editable-tag-group/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/react-ant-editable-tag-group
[version-url]: https://npmjs.org/package/@jswork/react-ant-editable-tag-group

[license-image]: https://img.shields.io/npm/l/@jswork/react-ant-editable-tag-group
[license-url]: https://github.com/afeiship/react-ant-editable-tag-group/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-ant-editable-tag-group
[size-url]: https://github.com/afeiship/react-ant-editable-tag-group/blob/master/dist/react-ant-editable-tag-group.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/react-ant-editable-tag-group
[download-url]: https://www.npmjs.com/package/@jswork/react-ant-editable-tag-group

---
_Source: https://npm.io/package/@jswork/react-ant-editable-tag-group · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
