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.

53 lines (43 loc) 764 B
import * as React from 'react'; interface SkeletonAvatarOptions extends React.HTMLAttributes<HTMLElement> { /** * HTML element tag * * @default 'span' */ tag: string; /** * Avatar size in px * * @default 48 */ size: number; /** * CSS color * * @default undefined */ color: string; /** * Defines wether to show icon or not * * @default true */ showIcon: boolean; /** * Icon CSS color */ iconColor: string; /** * Avatar CSS border radius * * @default '50%'' */ borderRadius: string; /** * Animation effectt */ effect: 'fade' | 'pulse' | 'blink'; } declare const SkeletonAvatar: React.FunctionComponent<SkeletonAvatarOptions>; export default SkeletonAvatar;