Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 7x 346x 7x 346x | import { Card, Skeleton, styled } from "@mui/material";
const StyledCard = styled(Card)(({ theme }) => ({
display: "flex",
gap: theme.spacing(2),
padding: theme.spacing(2),
width: "100%",
}));
const StyledLines = styled("div")({
flex: 1,
minWidth: 0,
});
/** Placeholder with the shape of a comment, shown while comments load. */
export default function CommentSkeleton() {
return (
<StyledCard>
<Skeleton variant="circular" width="3rem" height="3rem" sx={{ flexShrink: 0 }} />
<StyledLines>
<Skeleton variant="text" width="40%" />
<Skeleton variant="text" width="90%" />
<Skeleton variant="text" width="70%" />
</StyledLines>
</StyledCard>
);
}
|