ant-design/components/input/demo/borderless-debug.tsx
MadCcc c588e82a9c
feat: Input deprecate bordered for variant (#46337)
* feat: Input deprecate  for

* chore: code clean

* feat: TextArea

* chore: code clean

---------

Co-authored-by: lijianan <574980606@qq.com>
2023-12-11 10:20:32 +08:00

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;