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

22 lines
382 B
Markdown
Raw Normal View History

2016-06-03 15:00:01 +08:00
---
order: 5
title:
zh-CN: 文本域
en-US: Textarea
2016-06-03 15:00:01 +08:00
---
## zh-CN
2016-06-03 15:00:01 +08:00
用于多行输入,指定 `type` 为一个特殊的 `textarea`
## en-US
For multi-line user input cases, an input whose `type` prop has the value of `"textarea"` can be used.
2017-02-13 10:55:53 +08:00
````jsx
2016-06-03 15:00:01 +08:00
import { Input } from 'antd';
2017-05-22 14:44:58 +08:00
const { TextArea } = Input;
2016-06-03 15:00:01 +08:00
2017-05-22 14:44:58 +08:00
ReactDOM.render(<TextArea rows={4} />, mountNode);
2016-06-03 15:00:01 +08:00
````