Files
react-test/test/regressions/fixtures/CssBaseline/JoyCssBaseline.js

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

26 lines
838 B
JavaScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import * as React from 'react';
import { CssVarsProvider } from '@mui/joy/styles';
import Box from '@mui/joy/Box';
import CssBaseline from '@mui/joy/CssBaseline';
export default function JoyCssBaseline() {
return (
<CssVarsProvider>
<CssBaseline />
<Box sx={{ p: 2, display: 'flex', flexDirection: 'column', gap: 2 }}>
<Box sx={{ width: 300, height: 100, overflow: 'scroll', bgcolor: 'background.level1' }}>
{/* The scrollbar should be light */}
<Box sx={{ height: 1000 }} />
</Box>
<Box
data-joy-color-scheme="dark"
sx={{ width: 300, height: 100, overflow: 'scroll', bgcolor: 'background.level1' }}
>
{/* The scrollbar should be dark */}
<Box sx={{ height: 1000 }} />
</Box>
</Box>
</CssVarsProvider>
);
}