File size: 2,267 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
import React from 'react';
import { Flex, Input } from 'antd';
const { TextArea } = Input;
const App: React.FC = () => (
<Flex vertical gap={20}>
<Flex gap={12}>
<Input placeholder="Filled" variant="filled" />
<Input placeholder="Filled" variant="filled" disabled />
<Input placeholder="Filled" variant="filled" status="error" value="Filled Error" />
</Flex>
<Flex gap={12}>
<Input prefix="$" placeholder="Filled" variant="filled" />
<Input prefix="$" placeholder="Filled" variant="filled" disabled />
<Input prefix="$" placeholder="Filled" variant="filled" status="error" value="Filled Error" />
</Flex>
<Flex gap={12}>
<Input addonBefore="http://" addonAfter=".com" placeholder="Filled" variant="filled" />
<Input
addonBefore="http://"
addonAfter=".com"
placeholder="Filled"
variant="filled"
disabled
/>
<Input
addonBefore="http://"
addonAfter=".com"
placeholder="Filled"
variant="filled"
status="error"
value="Filled Error"
/>
</Flex>
<Flex gap={12}>
<Input addonAfter=".com" placeholder="Filled" variant="filled" />
<Input addonAfter=".com" placeholder="Filled" variant="filled" disabled />
<Input
addonAfter=".com"
placeholder="Filled"
variant="filled"
status="error"
value="Filled Error"
/>
</Flex>
<Flex gap={12}>
<Input addonBefore="http://" placeholder="Filled" variant="filled" />
<Input addonBefore="http://" placeholder="Filled" variant="filled" disabled />
<Input
addonBefore="http://"
placeholder="Filled"
variant="filled"
status="error"
value="Filled Error"
/>
</Flex>
<TextArea variant="filled" placeholder="Basic" />
<TextArea variant="filled" placeholder="Basic" status="error" value="Filled Error" />
<TextArea variant="filled" placeholder="Allow Clear" allowClear />
<TextArea variant="filled" placeholder="Show Count" showCount />
<TextArea
variant="filled"
placeholder="Show Count"
showCount
status="error"
value="Filled Error"
/>
</Flex>
);
export default App;
|