Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
94 lines
2.1 KiB
JavaScript
94 lines
2.1 KiB
JavaScript
import Grid from '@mui/material/Grid';
|
|
import Box from '@mui/material/Box';
|
|
|
|
export default function ShadowsDemo() {
|
|
return (
|
|
<Grid container>
|
|
<Box
|
|
sx={(theme) => ({
|
|
boxShadow: 0,
|
|
width: '8rem',
|
|
height: '5rem',
|
|
bgcolor: '#fff',
|
|
color: 'grey.800',
|
|
p: 1,
|
|
m: 1,
|
|
borderRadius: 2,
|
|
textAlign: 'center',
|
|
fontSize: '0.875rem',
|
|
fontWeight: '700',
|
|
...theme.applyStyles('dark', {
|
|
bgcolor: '#101010',
|
|
color: 'grey.300',
|
|
}),
|
|
})}
|
|
>
|
|
boxShadow: 0
|
|
</Box>
|
|
<Box
|
|
sx={(theme) => ({
|
|
boxShadow: 1,
|
|
width: '8rem',
|
|
height: '5rem',
|
|
bgcolor: '#fff',
|
|
color: 'grey.800',
|
|
p: 1,
|
|
m: 1,
|
|
borderRadius: 2,
|
|
textAlign: 'center',
|
|
fontSize: '0.875rem',
|
|
fontWeight: '700',
|
|
...theme.applyStyles('dark', {
|
|
bgcolor: '#101010',
|
|
color: 'grey.300',
|
|
}),
|
|
})}
|
|
>
|
|
boxShadow: 1
|
|
</Box>
|
|
<Box
|
|
sx={(theme) => ({
|
|
boxShadow: 2,
|
|
width: '8rem',
|
|
height: '5rem',
|
|
bgcolor: '#fff',
|
|
color: 'grey.800',
|
|
p: 1,
|
|
m: 1,
|
|
borderRadius: 2,
|
|
textAlign: 'center',
|
|
fontSize: '0.875rem',
|
|
fontWeight: '700',
|
|
...theme.applyStyles('dark', {
|
|
bgcolor: '#101010',
|
|
color: 'grey.300',
|
|
}),
|
|
})}
|
|
>
|
|
boxShadow: 2
|
|
</Box>
|
|
<Box
|
|
sx={(theme) => ({
|
|
boxShadow: 3,
|
|
width: '8rem',
|
|
height: '5rem',
|
|
bgcolor: '#fff',
|
|
color: 'grey.800',
|
|
p: 1,
|
|
m: 1,
|
|
borderRadius: 2,
|
|
textAlign: 'center',
|
|
fontSize: '0.875rem',
|
|
fontWeight: '700',
|
|
...theme.applyStyles('dark', {
|
|
bgcolor: '#101010',
|
|
color: 'grey.300',
|
|
}),
|
|
})}
|
|
>
|
|
boxShadow: 3
|
|
</Box>
|
|
</Grid>
|
|
);
|
|
}
|