@primer/react
Version:
An implementation of GitHub's Primer Design System using React
13 lines (12 loc) • 855 B
TypeScript
import React, { CSSProperties, HTMLProps } from "react";
//#region src/Skeleton/SkeletonBox.d.ts
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;
'data-component'?: string;
} & HTMLProps<HTMLElement>;
declare const SkeletonBox: React.ForwardRefExoticComponent<Omit<SkeletonBoxProps, "ref"> & React.RefAttributes<HTMLElement>>;
//#endregion
export { SkeletonBox, SkeletonBoxProps };