import type { HTMLAttributes } from 'react'; import { cx } from '../utils/cx'; import type { Size, Tone } from '../utils/types'; export { Spinner, type SpinnerProps } from './Spinner'; export interface SkeletonProps extends HTMLAttributes { variant?: 'text' | 'rect' | 'circle'; width?: number | string; height?: number | string; lines?: number; } export function Skeleton({ variant = 'text', width, height, lines = 1, className, style, ...rest }: SkeletonProps) { if (variant === 'text' && lines > 1) { return (