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
29 lines
580 B
TypeScript
29 lines
580 B
TypeScript
import Box from '@mui/material/Box';
|
|
|
|
export default function Hiding() {
|
|
return (
|
|
<div style={{ width: '100%' }}>
|
|
<Box
|
|
sx={{
|
|
display: { xs: 'block', md: 'none' },
|
|
m: 1,
|
|
fontSize: '0.875rem',
|
|
fontWeight: '700',
|
|
}}
|
|
>
|
|
hide on screens wider than md
|
|
</Box>
|
|
<Box
|
|
sx={{
|
|
display: { xs: 'none', md: 'block' },
|
|
m: 1,
|
|
fontSize: '0.875rem',
|
|
fontWeight: '700',
|
|
}}
|
|
>
|
|
hide on screens smaller than md
|
|
</Box>
|
|
</div>
|
|
);
|
|
}
|