Is there a way to set default props on custom styled components in MUI? Right now, I find myself adding maxWidth="sm"
to every instance which I'd prefer to have predefined.
const StyledContainer = styled(Container)(({ theme }) => ({
marginTop: theme.spacing(2),
}));
...
<StyledContainer maxWidth="sm" /> // current implementation
<StyledContainer /> // desired outcome