ant-design/components/spin/demo/delayAndDebounce.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

24 lines
579 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from 'react';
import { Alert, Flex, Spin, Switch } from 'antd';
const App: React.FC = () => {
const [loading, setLoading] = React.useState<boolean>(false);
return (
<Flex gap="middle" vertical>
<Spin spinning={loading} delay={500}>
<Alert
type="info"
title="Alert message title"
description="Further details about the context of this alert."
/>
</Spin>
<p>
Loading state
<Switch checked={loading} onChange={setLoading} />
</p>
</Flex>
);
};
export default App;