ant-design/components/spin/demo/tip.tsx
thinkasany fc97a4dd91
feat: ConfigProvider support classnames and styles for Alert (#52669)
* feat: ConfigProvider support classnames and styles for Alert

* empty commit

* update name and snap

* update
2025-02-07 17:39:31 +08:00

34 lines
743 B
TypeScript

import React from 'react';
import { Alert, Flex, Spin } from 'antd';
const contentStyle: React.CSSProperties = {
padding: 50,
background: 'rgba(0, 0, 0, 0.05)',
borderRadius: 4,
};
const content = <div style={contentStyle} />;
const App: React.FC = () => (
<Flex gap="middle" vertical>
<Flex gap="middle">
<Spin tip="Loading" size="small">
{content}
</Spin>
<Spin tip="Loading">{content}</Spin>
<Spin tip="Loading" size="large">
{content}
</Spin>
</Flex>
<Spin tip="Loading...">
<Alert
title="Alert message title"
description="Further details about the context of this alert."
type="info"
/>
</Spin>
</Flex>
);
export default App;