# xst-textarea

> Pretty Textarea react component used in tinper-next

Latest version **1.0.2** (published 2022-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install xst-textarea
pnpm add xst-textarea
yarn add xst-textarea
bun add xst-textarea
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-08-28 |
| First published | 2022-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 47.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | xiaoshutong |
| Keywords | react, react-component, react-textarea, textarea |

## Links

- npm: https://www.npmjs.com/package/xst-textarea
- Repository: https://github.com/supershutong/xst-textarea
- Homepage: https://github.com/supershutong/xst-textarea#readme
- Issues: https://github.com/supershutong/xst-textarea/issues
- npm.io page: https://npm.io/package/xst-textarea

## Dependencies (5)

- [rc-util](https://npm.io/package/rc-util.md) ^5.7.0
- [classnames](https://npm.io/package/classnames.md) ^2.2.1
- [shallowequal](https://npm.io/package/shallowequal.md) ^1.1.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.10.1
- [rc-resize-observer](https://npm.io/package/rc-resize-observer.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.2 (latest) — 2022-08-28

## README

# xst-textarea

[![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url]

[github-actions-image]: https://github.com/react-component/textarea/workflows/CI/badge.svg
[github-actions-url]: https://github.com/react-component/textarea/actions
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/textarea/master.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/react-component/textarea/branch/master
[david-url]: https://david-dm.org/react-component/textarea
[david-image]: https://david-dm.org/react-component/textarea/status.svg?style=flat-square
[david-dev-url]: https://david-dm.org/react-component/textarea?type=dev
[david-dev-image]: https://david-dm.org/react-component/textarea/dev-status.svg?style=flat-square

Pretty Textarea react component used in [ant.design](https://ant.design).

## Live Demo

https://react-component.github.io/textarea/

## Usage

```js
import Textarea from 'xst-textarea';
import { render } from 'react-dom';

render(<Textarea />, mountNode);
```

## API

| Property          | Type                        | Default      | Description                                                                                    |
| ----------------- | --------------------------- | ------------ | ---------------------------------------------------------------------------------------------- |
| prefixCls         | string                      | xst-textarea |                                                                                                |
| className         | string                      | ''           | additional class name of textarea                                                              |
| style             | React.CSSProperties         | -            | style properties of textarea                                                                   |
| autoSize          | boolean \| object           | -            | Height autosize feature, can be set to `true\|false` or an object `{ minRows: 2, maxRows: 6 }` |
| maxlength         | Number                      | -            | 用户最多可以输入的字符个数                                                                     |
| allowInputOverMax | boolean                     | false        | 超出 maxlength 后是否允许继续输入                                                              |
| onPressEnter      | function(e)                 | -            | The callback function that is triggered when Enter key is pressed                              |
| onResize          | function({ width, height }) | -            | The callback function that is triggered when resize                                            |

## Development

```
npm install
npm start
```

## License

xst-textarea is released under the MIT license.

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