ant-design/components/spin/demo/tip.tsx
lijianan 99faed814a
demo: update Spin demo layout to Flex Component (#45577)
Signed-off-by: lijianan <574980606@qq.com>
2023-11-01 22:26:02 +08:00

28 lines
647 B
TypeScript

import React from 'react';
import { Alert, Flex, Spin } from 'antd';
const App: React.FC = () => (
<Flex gap="small" vertical>
<Flex gap="small">
<Spin tip="Loading" size="small">
<div className="content" />
</Spin>
<Spin tip="Loading">
<div className="content" />
</Spin>
<Spin tip="Loading" size="large">
<div className="content" />
</Spin>
</Flex>
<Spin tip="Loading...">
<Alert
message="Alert message title"
description="Further details about the context of this alert."
type="info"
/>
</Spin>
</Flex>
);
export default App;