Skip to content

Instantly share code, notes, and snippets.

@azz0r
Created June 28, 2022 08:59
Show Gist options
  • Save azz0r/707c1994c072d4a3b80ccbb47ac6189c to your computer and use it in GitHub Desktop.
Save azz0r/707c1994c072d4a3b80ccbb47ac6189c to your computer and use it in GitHub Desktop.
import React from "react";
import Skeleton from '@mui/material/Skeleton';
import { Box, Grid } from "@mui/material";
const skeletonProps = {
animation: "wave",
width: "100%",
variant: "rect"
};
export default function Loading() {
return (
<>
<Box my="16px" width="100%">
<Skeleton {...skeletonProps} height="4vh" />
</Box>
<Grid container spacing={2}>
<Grid item xs={12} sm={9} md={8} lg={8}>
<Skeleton {...skeletonProps} height="50vh" />
</Grid>
<Grid item xs={12} sm={3} md={4} lg={4}>
<Skeleton {...skeletonProps} height="50vh" />
</Grid>
</Grid>
</>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment