ant-design/components/spin/demo/tip.tsx
sribich 8cca17f5ce
fix: adjust spin styles to support sm/lg variants (#38923)
* fix: adjust spin styles to support sm/lg variants

* doc: add sized tip examples to Spin docs

* test: update spin component snapshots
2022-11-29 14:09:58 +08:00

29 lines
667 B
TypeScript

import React from 'react';
import { Alert, Space, Spin } from 'antd';
const App: React.FC = () => (
<Space direction="vertical" style={{ width: '100%' }}>
<Space>
<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>
</Space>
<Spin tip="Loading...">
<Alert
message="Alert message title"
description="Further details about the context of this alert."
type="info"
/>
</Spin>
</Space>
);
export default App;