DocSpace-client/packages/components/loader/README.md

26 lines
1.2 KiB
Markdown
Raw Normal View History

2019-09-08 14:43:11 +00:00
# Loader
2019-06-03 11:48:55 +00:00
Loader component is used for displaying loading actions on a page
2019-06-03 11:48:55 +00:00
### Usage
2019-06-03 11:48:55 +00:00
```js
import Loader from "@docspace/components/loader";
2019-06-03 11:48:55 +00:00
```
```jsx
<Loader type="base" color="black" size="18px" label="Loading" />
```
2019-06-03 11:48:55 +00:00
### Properties
2019-06-03 11:48:55 +00:00
| Props | Type | Required | Values | Default | Description |
| ----------- | :------------: | :------: | :----------------------------------: | :-----: | ----------------- |
| `className` | `string` | - | - | - | Class name |
| `color` | `string` | - | - | - | Font color |
| `id` | `string` | - | - | - | Accepts id |
| `label` | `string` | - | - | - | Text label |
| `size` | `string` | - | - | `40px` | Font size |
| `style` | `obj`, `array` | - | - | - | Accepts css style |
| `type` | `oneOf` | - | `base`, `oval`, `dual-ring`, `rombs` | `base` | - |