@primer/react
Version:
An implementation of GitHub's Primer Design System using React
16 lines • 860 B
TypeScript
import type React from 'react';
import { type HTMLProps } from 'react';
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;
export { SkeletonText };
export type { SkeletonTextProps };
//# sourceMappingURL=SkeletonText.d.ts.map