1 | import * as React from "react";
|
2 | import { BoxProps } from "../Box";
|
3 |
|
4 | export interface ISkeleton {
|
5 | /**
|
6 | * The color at the animation start
|
7 | */
|
8 | colorStart?: string;
|
9 | /**
|
10 | * The color at the animation end
|
11 | */
|
12 | colorEnd?: string;
|
13 | /**
|
14 | * Render only the children
|
15 | */
|
16 | isLoaded?: boolean;
|
17 | /**
|
18 | * The animation speed in seconds
|
19 | */
|
20 | speed?: number;
|
21 | /**
|
22 | * The fadeIn duration in seconds
|
23 | */
|
24 | fadeInDuration?: number;
|
25 | }
|
26 |
|
27 | export type SkeletonProps = ISkeleton & BoxProps;
|
28 |
|
29 | declare const Skeleton: React.FC<SkeletonProps>;
|
30 |
|
31 | export default Skeleton;
|