ant-design/components/input/demo/borderless-debug.md
2022-10-19 12:05:24 +08:00

879 B

order title debug
98
zh-CN en-US
Style Debug Style Debug
true

zh-CN

Buggy! 测试一些踩过的样式坑。

en-US

Buggy!

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

const { TextArea } = Input;

const App: React.FC = () => (
  <div style={{ backgroundColor: 'rgba(0, 0, 128, .2)' }}>
    <Input placeholder="Unbordered" bordered={false} />
    <Input placeholder="Unbordered" bordered={false} size="large" />
    <TextArea placeholder="Unbordered" bordered={false} />
    <TextArea placeholder="Unbordered" bordered={false} allowClear />
    <Input placeholder="Unbordered" bordered={false} allowClear />
    <Input prefix="¥" suffix="RMB" bordered={false} />
    <Input prefix="¥" suffix="RMB" disabled bordered={false} />
    <TextArea allowClear style={{ border: '2px solid #000' }} />
  </div>
);

export default App;