我知道我可以自定义标准 MUI 组件,例如 Button,但我可以创建自己的 MyCustomButton,它具有'muiName' = 'MyCustomButton'并且可以通过主题配置进行自定义:
createTheme({
components: {
MyCustomButton: {
styleOverrides: {
root: {...},
MyCustomButtonSubComponent: {...}
}
}
}
})
谢谢您的回答!