UNPKG

its-just-ui

Version:

ITS Just UI - The easiest and best React UI component library. Modern, accessible, and customizable components built with TypeScript and Tailwind CSS. Simple to use, production-ready components for building beautiful user interfaces with ease.

30 lines (28 loc) 1.1 kB
import { default as React } from 'react'; export type SkeletonVariant = 'default' | 'rounded' | 'circular' | 'text' | 'avatar' | 'button' | 'card'; export type SkeletonSize = 'sm' | 'md' | 'lg' | 'xl'; export type SkeletonAnimation = 'pulse' | 'wave' | 'shimmer' | 'none'; export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> { variant?: SkeletonVariant; size?: SkeletonSize; animation?: SkeletonAnimation; lines?: number; width?: string | number; height?: string | number; radius?: string | number; animationDuration?: number; animationDelay?: number; showContent?: boolean; contentOpacity?: number; backgroundColor?: string; foregroundColor?: string; borderColor?: string; borderWidth?: string; borderStyle?: string; gap?: string | number; padding?: string | number; margin?: string | number; children?: React.ReactNode; } export declare const Skeleton: React.MemoExoticComponent<React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>>; export default Skeleton;