@cfxjs/react-ui
Version:
Modern and minimalist React UI library.
14 lines (13 loc) • 537 B
TypeScript
import React from 'react';
import { SkeletonAnimations, SkeletonVariants } from '../utils/prop-types';
interface SkeletonBaseProps {
animation?: SkeletonAnimations;
width?: string;
height?: string;
variant?: SkeletonVariants;
style?: React.CSSProperties;
}
declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof SkeletonBaseProps>;
export declare type SkeletonProps = React.PropsWithChildren<SkeletonBaseProps & NativeAttrs>;
export declare const Skeleton: React.FC<SkeletonProps>;
export default Skeleton;