2020-11-10 14:58:19 +00:00
|
|
|
# Rows Loader
|
|
|
|
|
|
|
|
Component that displays rows loader
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
```js
|
2021-02-25 21:19:45 +00:00
|
|
|
import Loaders from "@appserver/common/components/Loaders";
|
2020-11-10 14:58:19 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<Loaders.Row />
|
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<Loaders.Row isRectangle={true} />
|
|
|
|
```
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------------- | :------: | :------: | :----: | :-------: | ------------------------------------------------ |
|
|
|
|
| `title` | `string` | - | - | `` | It's used to describe what element it is. |
|
|
|
|
| `isRectangle` | `bool` | - | - | true | Show rectangle or circle? |
|
2020-11-11 08:38:30 +00:00
|
|
|
| `borderRadius` | `string` | - | - | `3` | Sets the corners rounding |
|
2020-11-10 14:58:19 +00:00
|
|
|
| `backgroundColor` | `string` | - | - | `#000000` | Used as background of animation |
|
|
|
|
| `foregroundColor` | `string` | - | - | `#000000` | Used as the foreground of animation |
|
|
|
|
| `backgroundOpacity` | `number` | - | - | 0.2 | Background opacity (0 = transparent, 1 = opaque) |
|
|
|
|
| `foregroundOpacity` | `number` | - | - | 0.25 | Animation opacity (0 = transparent, 1 = opaque) |
|
|
|
|
| `speed` | `number` | - | - | 2 | Animation speed in seconds |
|
|
|
|
| `animate` | `bool` | - | - | true | Opt-out of animations |
|