UNPKG

573 BTypeScriptView Raw
1import * as React from "react";
2import { BoxProps } from "../Box";
3
4export 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
27export type SkeletonProps = ISkeleton & BoxProps;
28
29declare const Skeleton: React.FC<SkeletonProps>;
30
31export default Skeleton;