mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
c588e82a9c
* feat: Input deprecate for * chore: code clean * feat: TextArea * chore: code clean --------- Co-authored-by: lijianan <574980606@qq.com>
20 lines
746 B
TypeScript
20 lines
746 B
TypeScript
import React from 'react';
|
|
import { Input } from 'antd';
|
|
|
|
const { TextArea } = Input;
|
|
|
|
const App: React.FC = () => (
|
|
<div style={{ backgroundColor: 'rgba(0, 0, 128, .2)' }}>
|
|
<Input placeholder="Unbordered" variant="borderless" />
|
|
<Input placeholder="Unbordered" variant="borderless" size="large" />
|
|
<TextArea placeholder="Unbordered" variant="borderless" />
|
|
<TextArea placeholder="Unbordered" variant="borderless" allowClear />
|
|
<Input placeholder="Unbordered" variant="borderless" allowClear />
|
|
<Input prefix="¥" suffix="RMB" variant="borderless" />
|
|
<Input prefix="¥" suffix="RMB" disabled variant="borderless" />
|
|
<TextArea allowClear style={{ border: '2px solid #000' }} />
|
|
</div>
|
|
);
|
|
|
|
export default App;
|