Gem 一覧へ戻る
react-component/textarea(新しいタブで開きます)
主要言語: TypeScript
React Textarea
- star 数
- 33
- watcher 数
- 3
- fork 数
- 46
- issue 数
- 11
- 最終更新
- 2026/10/12
主要言語: TypeScript
React Textarea
Pretty Textarea react component used in ant.design.
https://react-component.github.io/textarea/
import Textarea from 'rc-textarea'; import { render } from 'react-dom'; render(<Textarea />, mountNode);
| Property | Type | Default | Description |
|---|---|---|---|
| prefixCls | string | rc-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 } |
| 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 |
npm install
npm start
rc-textarea is released under the MIT license.