UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

29 lines (28 loc) 1.03 kB
import * as React from 'react'; import { SpaceProps, LayoutProps, BorderRadiusProps, FontSizeProps, LineHeightProps } from '@xstyled/system'; interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, SpaceProps, LayoutProps, BorderRadiusProps, FontSizeProps, LineHeightProps { className?: string; loading?: boolean; textLength?: number; textChar?: string; blockRatio?: number; colorStart?: string; colorEnd?: string; variant?: string; } interface StyledSkeletonProps extends SkeletonProps { textOnly?: boolean; colorStart: string; colorEnd: string; } export declare const SKELETON_KEY = "skeleton"; export declare const SKELETON_THEME: { variants: { base: { colorStart: string; colorEnd: string; }; }; }; export declare const Skeleton: ({ className, children, display, textLength, textChar, blockRatio, loading, colorStart, colorEnd, ...props }: SkeletonProps) => React.ReactElement<StyledSkeletonProps> | any; export {};