import Typography from '@mui/material/Typography'; import PropTypes from 'prop-types'; import Skeleton from '@mui/material/Skeleton'; import Grid from '@mui/material/Grid'; const variants = ['h1', 'h3', 'body1', 'caption']; function TypographyDemo(props) { const { loading = false } = props; return (
{variants.map((variant) => ( {loading ? : variant} ))}
); } TypographyDemo.propTypes = { loading: PropTypes.bool, }; export default function SkeletonTypography() { return ( ); }