diff --git a/packages/mui-system/src/Box/Box.spec.tsx b/packages/mui-system/src/Box/Box.spec.tsx index aa83f954fe84e3..7530eb2c28b3e0 100644 --- a/packages/mui-system/src/Box/Box.spec.tsx +++ b/packages/mui-system/src/Box/Box.spec.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Box, Theme } from '@mui/system'; +import { Box, Theme, styled } from '@mui/system'; interface TestProps { test?: string; @@ -104,3 +104,15 @@ function TestFillPropCallback() { ]} />; } + +const StyledBox = styled(Box)` + color: white; +`; + +export default function StyledBoxWithSx() { + return ( + + Box + + ); +}