@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.
20 lines (15 loc) • 363 B
TypeScript
import * as React from 'react';
interface SkeletonTextOptions extends React.HTMLAttributes<HTMLElement> {
/**
* HTML element tag
*
* @default 'span'
*/
tag: string;
/**
* Animation effectt
*/
effect: 'fade' | 'pulse' | 'blink';
}
declare const SkeletonText: React.FunctionComponent<SkeletonTextOptions>;
export default SkeletonText;