UNPKG

@skeleton-elements/react

Version:

Skeleton elements (aka UI Skeletons, Skeleton Screens, Ghost Elements) are representations of UI that will be available (loaded) soon. They are designed to improve perceived performance.

34 lines (27 loc) 542 B
import * as React from 'react'; interface SkeletonBlockOptions extends React.HTMLAttributes<HTMLElement> { /** * HTML element tag * * @default 'div' */ tag: string; /** * Avatar block CSS width * * @default undefined */ width: string; /** * Avatar block CSS height * * @default undefined */ height: string; /** * Animation effectt */ effect: 'fade' | 'pulse' | 'blink'; } declare const SkeletonBlock: React.FunctionComponent<SkeletonBlockOptions>; export default SkeletonBlock;