Files
react-test/docs/data/joy/components/box/BoxSx.tsx

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

33 lines
604 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import { Box, ThemeProvider } from '@mui/joy';
export default function BoxSx() {
return (
<ThemeProvider
theme={{
colorSchemes: {
light: {
palette: {
primary: {
400: '#38bdf8',
700: '#0369a1',
},
},
},
},
}}
>
<Box
sx={{
width: 100,
height: 100,
borderRadius: 1,
bgcolor: 'primary.700',
'&:hover': {
bgcolor: 'primary.400',
},
}}
/>
</ThemeProvider>
);
}