Theme:
components: {
MuiSelect: {
variants: [
{
props: { variant: 'dashed' },
style: {
textTransform: 'none',
border: `2px dashed red`,
},
},
],
},
},
below
declare module '@mui/material/Select' {
interface SelectPropsVariantOverrides {
dashed: true;
}
}
I do everything as here: https://mui.com/material-ui/customization/theme-components/#creating-new-component-variants
I get this error:
When I use their example - everything works but they use MuiButton, I need for MuiSelect
