mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 04:18:28 +08:00
16 lines
269 B
TypeScript
16 lines
269 B
TypeScript
|
import React from 'react';
|
||
|
import { Input } from 'antd';
|
||
|
|
||
|
const { TextArea } = Input;
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<TextArea rows={4} />
|
||
|
<br />
|
||
|
<br />
|
||
|
<TextArea rows={4} placeholder="maxLength is 6" maxLength={6} />
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|