mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
abf215a982
* init recommend block * init design pages * home frames * add background banner * hello, Hitu makes the animation * add media query * add images * update types * add declare * preload support * update ignore * additional ignore site Home lint * update ignore * add hover effect * adjust alt of bannber * adjust lang & card shadow * fix typo * adjust desc * hitu in english * article add link * Certainty is hitu * Meaning Hitu * Growth with Hitu * Natural Hitu * slow down of Natural * adjust speed of icons * New Meaning animation * adjust animation duration * update card link * update link * values doc * replace images * faster Growth * update values * fix lint * all slow down * adjust padding * update icons * adjust margin * update images * adjust montion * adjust by designer * update pages * update design prod * update articles * update site style * update doc * update images * update style * lint fix * adjust liner color * github text color update * adjust margin of title * mobile design * update design sub card * update style * less lint * update images * design card auto height * update img * update logo transition * adjust card style * adjust style to fix 184 * adjust nav style * category it * slow down of logo * update style * hide video link * hitu article * use img of hitu * update docs * style lint * update Hitu layout doc * update images * speed up logo * update link * clean up * clean up * update doc * adjust doc * update images
29 lines
982 B
Markdown
29 lines
982 B
Markdown
---
|
|
category: Components
|
|
type: Feedback
|
|
title: Spin
|
|
---
|
|
|
|
A spinner for displaying loading state of a page or a section.
|
|
|
|
## When To Use
|
|
|
|
When part of the page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude.
|
|
|
|
## API
|
|
|
|
| Property | Description | Type | Default Value |
|
|
| --- | --- | --- | --- |
|
|
| delay | specifies a delay in milliseconds for loading state (prevent flush) | number (milliseconds) | - |
|
|
| indicator | React node of the spinning indicator | ReactNode | - |
|
|
| size | size of Spin, options: `small`, `default` and `large` | string | `default` |
|
|
| spinning | whether Spin is spinning | boolean | true |
|
|
| tip | customize description content when Spin has children | string | - |
|
|
| wrapperClassName | className of wrapper when Spin has children | string | - |
|
|
|
|
### Static Method
|
|
|
|
- `Spin.setDefaultIndicator(indicator: ReactNode)`
|
|
|
|
You can define default spin element globally.
|