Spin
| Importimport{ Spin }from"antd"; | 
| Sourcecomponents/spin | 
| Importimport{ Spin }from"antd"; | 
| Sourcecomponents/spin | 
When part of the page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude.
Common props ref:Common props
| Property | Description | Type | Default | Version | 
|---|---|---|---|---|
| delay | Specifies a delay in milliseconds for loading state (prevent flush) | number (milliseconds) | - | |
| fullscreen | Display a backdrop with the Spincomponent | boolean | false | 5.11.0 | 
| indicator | React node of the spinning indicator | ReactNode | - | |
| percent | The progress percentage, when set to auto, it will be an indeterminate progress | number | 'auto' | - | 5.18.0 | 
| size | The size of Spin, options: small,defaultandlarge | string | default | |
| spinning | Whether Spin is visible | boolean | true | |
| tip | Customize description content when Spin has children | ReactNode | - | |
| wrapperClassName | The className of wrapper when Spin has children | string | - | 
Spin.setDefaultIndicator(indicator: ReactNode)
You can define default spin element globally.
| Token Name | Description | Type | Default Value | 
|---|---|---|---|
| contentHeight | Height of content area | string | number | 400 | 
| dotSize | Loading icon size | number | 20 | 
| dotSizeLG | Large loading icon size | number | 32 | 
| dotSizeSM | Small loading icon size | number | 14 | 
Loading state:
Loading state: