Browse Source
* fix: adjust spin styles to support sm/lg variants * doc: add sized tip examples to Spin docs * test: update spin component snapshotspull/39083/head
sribich
2 years ago
committed by
GitHub
5 changed files with 401 additions and 77 deletions
@ -1,14 +1,28 @@ |
|||
import React from 'react'; |
|||
import { Alert, Spin } from 'antd'; |
|||
import { Alert, Space, Spin } from 'antd'; |
|||
|
|||
const App: React.FC = () => ( |
|||
<Spin tip="Loading..."> |
|||
<Alert |
|||
message="Alert message title" |
|||
description="Further details about the context of this alert." |
|||
type="info" |
|||
/> |
|||
</Spin> |
|||
<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; |
|||
|
Loading…
Reference in new issue