2020-11-09 23:56:30 +00:00
|
|
|
# Profile View Loader
|
|
|
|
|
|
|
|
Component that displays profile view loader
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
```js
|
2020-11-21 13:07:23 +00:00
|
|
|
import { Loaders } from "@appserver/common";
|
2020-11-09 23:56:30 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<Loaders.ProfileView />
|
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
2020-11-10 14:31:25 +00:00
|
|
|
<Loaders.ProfileView isEdit={false} />
|
2020-11-09 23:56:30 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------------- | :------: | :------: | :----: | :-------: | ------------------------------------------------ |
|
|
|
|
| `title` | `string` | - | - | `` | It's used to describe what element it is. |
|
2020-11-10 14:31:25 +00:00
|
|
|
| `isEdit` | `bool` | - | - | `true` | Show loader of Edit button? |
|
2020-11-11 08:38:30 +00:00
|
|
|
| `borderRadius` | `string` | - | - | `3` | Sets the corners rounding |
|
2020-11-09 23:56:30 +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.15 | Animation opacity (0 = transparent, 1 = opaque) |
|
|
|
|
| `speed` | `number` | - | - | 2 | Animation speed in seconds |
|
|
|
|
| `animate` | `bool` | - | - | true | Opt-out of animations |
|