Files
react-test/docs/data/system/shadows/ShadowsDemo.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

94 lines
2.1 KiB
JavaScript
Raw Permalink Normal View History

2025-12-12 14:26:25 +09:00
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>
);
}