mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
19 lines
607 B
Markdown
19 lines
607 B
Markdown
# Spin
|
|
It can be called loading, but why it's called loading? Because there is another private component will less props called loading.
|
|
## Demos
|
|
```demo
|
|
basic
|
|
wrap
|
|
```
|
|
## Props
|
|
|Name|Type|Default|Description|
|
|
|-|-|-|-|
|
|
|spinning|`boolean`|`false`|It spin is active|
|
|
|size|`'small' \| 'in-small' \| 'medium' \| 'in-medium' \| 'large' \| 'in-large'`|`medium`||
|
|
|stroke|`string`|`null`|Color of spin|
|
|
|stroke-width|`number`|`null`|Relative width of spin's stroke, you can assume the outer radius of spin is 100|
|
|
|
|
## Slots
|
|
|Name|Parameters|Description|
|
|
|-|-|-|
|
|
|default|`()`|If set, spin will wrap the content| |