ant-design/components/input/demo/textarea.md

31 lines
361 B
Markdown
Raw Normal View History

2016-06-03 15:00:01 +08:00
---
order: 5
title:
2019-05-07 14:57:32 +08:00
zh-CN: 文本域
en-US: TextArea
2016-06-03 15:00:01 +08:00
---
## zh-CN
2017-07-14 15:35:03 +08:00
用于多行输入。
2016-06-03 15:00:01 +08:00
## en-US
2017-07-14 15:35:03 +08:00
For multi-line input.
2019-05-07 14:57:32 +08:00
```jsx
2016-06-03 15:00:01 +08:00
import { Input } from 'antd';
2018-06-27 15:55:04 +08:00
2017-05-22 14:44:58 +08:00
const { TextArea } = Input;
2016-06-03 15:00:01 +08:00
ReactDOM.render(
<>
<TextArea rows={4} />
<br />
<br />
<TextArea rows={4} placeholder="maxLength is 6" maxLength={6} />
</>,
mountNode,
);
2019-05-07 14:57:32 +08:00
```