mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 11:08:30 +08:00
22 lines
737 B
Markdown
22 lines
737 B
Markdown
---
|
|
category: Components
|
|
type: Other
|
|
title: Spin
|
|
---
|
|
|
|
A Spin is used for displaying loading state of a page or a block.
|
|
|
|
## When to use
|
|
|
|
When partial of page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude.
|
|
|
|
|
|
## API
|
|
|
|
|
|
| Property | Type | Default | Description |
|
|
|------------|----------------|-------------|--------------|
|
|
| size | enum | default | Size of dot in spin component, avaliable in `small`, `default` and `large`. |
|
|
| spinning | boolean | true | Use in embedded mode, to modify loading state. |
|
|
| tip | string | None | Customize decription content |
|