@primer/react
Version:
An implementation of GitHub's Primer Design System using React
23 lines (22 loc) • 831 B
TypeScript
import React, { HTMLProps } from "react";
//#region src/SkeletonText/SkeletonText.d.ts
interface SkeletonTextProps extends Omit<HTMLProps<HTMLElement>, 'size'> {
/** Size of the text that the skeleton is replacing. */
size?: 'display' | 'titleLarge' | 'titleMedium' | 'titleSmall' | 'bodyLarge' | 'bodyMedium' | 'bodySmall' | 'subtitle';
/** Number of lines of skeleton text to render. */
lines?: number;
/** Maximum width that the line(s) of skeleton text can take up. Accepts any valid CSS `max-width` value. */
maxWidth?: React.CSSProperties['maxWidth'];
/** Class name for custom styling */
className?: string;
}
declare function SkeletonText({
lines,
maxWidth,
size,
className,
style,
...rest
}: SkeletonTextProps): React.JSX.Element;
//#endregion
export { SkeletonText, type SkeletonTextProps };