2019-06-05 10:32:10 +00:00
|
|
|
# Loaders: Base
|
2019-06-03 11:48:55 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { Loader } from 'asc-web-components';
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Description
|
|
|
|
|
|
|
|
Loader component is used for displaying loading actions on a page.
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
2019-06-05 10:32:10 +00:00
|
|
|
<Loader type="base" color="black" size={18} label="Loading" />
|
2019-06-03 11:48:55 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------------ | -------- | :------: | --------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
2019-06-05 10:32:10 +00:00
|
|
|
| `type` | `oneOf` | - | `base`, `oval`, `dual-ring`, `rombs` | `base` | - |
|
|
|
|
| `color` | `string` | - | - | - | Font color |
|
|
|
|
| `size` | `number` or `string` | - | - | - | Font size |
|
|
|
|
| `label` | `string` | - | - | - | Text label |
|
2019-06-03 11:48:55 +00:00
|
|
|
|
|
|
|
|