ant-design/components/input/demo/textarea.md
2022-05-21 22:14:15 +08:00

408 B

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

zh-CN

用于多行输入。

en-US

For multi-line input.

import { Input } from 'antd';
import React from 'react';

const { TextArea } = Input;

const App: React.FC = () => (
  <>
    <TextArea rows={4} />
    <br />
    <br />
    <TextArea rows={4} placeholder="maxLength is 6" maxLength={6} />
  </>
);

export default App;