ant-design/components/spin/demo/custom-indicator.tsx
Wanpan d0fd9935c6
fix: Fix Spin missing default font size when customizing icons (#49211)
* fix: Fix Spin missing default font size when customizing icons

* chore: adjust style

* test: add test case

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2024-06-04 15:12:59 +08:00

15 lines
443 B
TypeScript

import React from 'react';
import { LoadingOutlined } from '@ant-design/icons';
import { Space, Spin } from 'antd';
const App: React.FC = () => (
<Space>
<Spin indicator={<LoadingOutlined spin />} size="small" />
<Spin indicator={<LoadingOutlined spin />} />
<Spin indicator={<LoadingOutlined spin />} size="large" />
<Spin indicator={<LoadingOutlined style={{ fontSize: 48 }} spin />} />
</Space>
);
export default App;