UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

23 lines (22 loc) 819 B
import type { PropsWithChildren } from 'react'; type CircularSkeletonProps = { animation?: SkeletonAnimation; color?: SkeletonColor; height?: never; width?: SkeletonWidth; variant?: 'circle'; }; type RectangularSkeletonProps = { animation?: SkeletonAnimation; color?: SkeletonColor; height?: SkeletonHeight; width?: SkeletonWidth; variant?: 'rounded' | 'square'; }; type SkeletonAnimation = 'pulse'; type SkeletonColor = 'light' | 'dark'; type SkeletonHeight = 'short' | 'medium' | 'long'; type SkeletonProps = CircularSkeletonProps | RectangularSkeletonProps; type SkeletonWidth = 'short' | 'medium' | 'long'; declare function Skeleton({ animation, color, height, width, variant, }: PropsWithChildren<SkeletonProps>): JSX.Element; export default Skeleton;