@primer/react
Version:
An implementation of GitHub's Primer Design System using React
14 lines • 841 B
TypeScript
import React from 'react';
import { type CSSProperties, type HTMLProps } from 'react';
export type SkeletonBoxProps = {
/** Height of the skeleton "box". Accepts any valid CSS `height` value. */
height?: CSSProperties['height'];
/** Width of the skeleton "box". Accepts any valid CSS `width` value. */
width?: CSSProperties['width'];
/** The className of the skeleton box */
className?: string;
/** Controls whether and how long to delay rendering the SkeletonBox. Set to 'short' to delay by 300ms, 'long' to delay by 1000ms, or provide a custom number of milliseconds.*/
delay?: 'short' | 'long' | number;
} & HTMLProps<HTMLElement>;
export declare const SkeletonBox: React.ForwardRefExoticComponent<Omit<SkeletonBoxProps, "ref"> & React.RefAttributes<HTMLElement>>;
//# sourceMappingURL=SkeletonBox.d.ts.map