naive-ui/demo/documentation/components/spin/enUS/index.md

19 lines
608 B
Markdown
Raw Normal View History

2019-12-09 18:09:07 +08:00
# Spin
It can be called loading, but why it's called loading? Because there is another internal component with less props called loading.
2020-01-31 21:58:21 +08:00
## Demos
2019-10-15 17:40:21 +08:00
```demo
basic
wrap
2020-01-31 21:58:21 +08:00
```
## 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|