-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#SH-41 -(JSX)-Add scaffolding for a new React element #41
- Loading branch information
1 parent
6a1dff9
commit da8debd
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as React from 'react'; | ||
import { Grid } from "@mui/material" | ||
import { styled } from '@mui/material/styles'; | ||
import Paper from '@mui/material/Paper'; | ||
import Box from '@mui/material/Box'; | ||
|
||
|
||
const Item = styled(Paper)(({ theme }) => ({ | ||
backgroundColor: theme.palette.mode === 'dark' ? '#1A2027' : '#fff', | ||
...theme.typography.body2, | ||
padding: theme.spacing(1), | ||
textAlign: 'center', | ||
color: theme.palette.text.secondary, | ||
})); | ||
|
||
export default function GridTable() { | ||
return ( | ||
<Box sx={{ flexGrow: 1 }}> | ||
<Grid container direction="row" justifyContent="space-evenly" alignItems="baseline"> | ||
<Grid item xs={12} sm={12} md={12} lg={12} xl={12}> | ||
<Item>xs=12 sm=12 md=12 lg=12 xl=12 </Item> | ||
</Grid> | ||
</Grid> | ||
</Box> | ||
); | ||
} |