@gravity-ui/uikit
Version:
Gravity UI base styling and components
18 lines (17 loc) • 683 B
TypeScript
import type * as React from 'react';
import type { QAProps } from "../types.js";
import "./Skeleton.css";
export type SkeletonSize = 'xs' | 's' | 'm' | 'l' | 'xl';
export interface SkeletonProps extends Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style'>, QAProps {
/**
* Animation type to apply to the skeleton
* @default 'gradient'
*/
animation?: 'gradient' | 'pulse' | 'none';
/** @default 'rect' */
variant?: 'rect' | 'square' | 'circle' | 'text';
size?: SkeletonSize;
width?: number | string;
height?: number | string;
}
export declare function Skeleton(rawProps: SkeletonProps): import("react/jsx-runtime").JSX.Element;