ant-design/components/input/demo/borderless-debug.tsx
二货爱吃白萝卜 8890eff05e
ehance: borderless status (#49608)
* fix: borderless status

* test: update snapshot
2024-06-26 21:35:12 +08:00

26 lines
1.1 KiB
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' }} />
{/* status */}
<Input defaultValue="error" variant="borderless" status="error" />
<Input defaultValue="warning" variant="borderless" status="warning" />
<Input prefix="$" defaultValue="error" variant="borderless" status="error" />
<Input prefix="$" defaultValue="warning" variant="borderless" status="warning" />
</div>
);
export default App;