ant-design/components/input-number/demo/variant.tsx
ustcfury fd4abbf628
add underlined variant (#52546)
* feat: add variant underlined in Input&&InputNumber&&Mentions

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* fix: fix eslint

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* fix: remove commented code

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* fix: update underlined style

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* fix:fix eslint problem

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>

* feat: add Select variant underlined

to #51379

* feat: add underlined demo

to #51379

* feat: update snapshots

to #51379

* feat: update doc

to #51379

---------

Signed-off-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>
Co-authored-by: 绍晗 <zhaoshaoting.zst@alibaba-inc.com>
2025-01-23 15:16:12 +08:00

13 lines
486 B
TypeScript

import React from 'react';
import { Flex, InputNumber } from 'antd';
const App: React.FC = () => (
<Flex vertical gap={12}>
<InputNumber placeholder="Outlined" style={{ width: 200 }} />
<InputNumber placeholder="Filled" variant="filled" style={{ width: 200 }} />
<InputNumber placeholder="Borderless" variant="borderless" style={{ width: 200 }} />
<InputNumber placeholder="Underlined" variant="underlined" style={{ width: 200 }} />
</Flex>
);
export default App;