DocSpace-client/web/ASC.Web.Components/src/components/loader/README.md

31 lines
1.3 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 "asc-web-components";
2019-06-03 11:48:55 +00:00
```
```jsx
<Loader
type="base"
color="black"
size={18}
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` | `number`,`string` | - | - | - | Font size |
| `style` | `obj`, `array` | - | - | - | Accepts css style |
| `type` | `oneOf` | - | `base`, `oval`, `dual-ring`, `rombs` | `base` | - |