ant-design/components/input/demo/textarea.md
chenyizhongx 38b4a03c56
fix textarea maxlength issue (#33910)
* fix: textarea maxlength

* refactor: delete some useless code

* refactor: fix ci

* refactor and fix test case fall

* update snapshot

* add testcase

* refactor type defined
2022-02-14 11:27:52 +08:00

361 B

order title
5
zh-CN en-US
文本域 TextArea

zh-CN

用于多行输入。

en-US

For multi-line input.

import { Input } from 'antd';

const { TextArea } = Input;

ReactDOM.render(
  <>
    <TextArea rows={4} />
    <br />
    <br />
    <TextArea rows={4} placeholder="maxLength is 6" maxLength={6} />
  </>,
  mountNode,
);