@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
59 lines (58 loc) • 1.62 kB
TypeScript
/**
* MSKCC DSM 2021, 2023
*/
import PropTypes from 'prop-types';
interface SkeletonTextProps {
/**
* Specify an optional className to be applied to the container node.
*/
className?: string;
/**
* Generates skeleton text at a larger size.
*/
heading?: boolean;
/**
* The number of lines shown if paragraph is true.
*/
lineCount?: number;
/**
* Set this to true to generate multiple lines of text.
*/
paragraph?: boolean;
/**
* Width (in px or %) of single line of text or max-width of paragraph lines.
*/
width?: string;
}
declare const SkeletonText: {
({ paragraph, lineCount, width, heading, className, ...rest }: SkeletonTextProps): JSX.Element;
propTypes: {
/**
* Specify an optional className to be applied to the container node
*/
className: PropTypes.Requireable<string>;
/**
* generates skeleton text at a larger size
*/
heading: PropTypes.Requireable<boolean>;
/**
* the number of lines shown if paragraph is true
*/
lineCount: PropTypes.Requireable<number>;
/**
* will generate multiple lines of text
*/
paragraph: PropTypes.Requireable<boolean>;
/**
* width (in px or %) of single line of text or max-width of paragraph lines
*/
width: PropTypes.Requireable<string>;
};
defaultProps: {
paragraph: boolean;
width: string;
heading: boolean;
lineCount: number;
};
};
export default SkeletonText;