Is there a way to create 'truly' custom component in MUI?

Viewed 298

I know that I can customize standard MUI components like Button, but can I create my own MyCustomButton, that will have 'muiName' = 'MyCustomButton' and that could be customized via theme configurations:

createTheme({
  components: { 
    MyCustomButton: {
      styleOverrides: { 
        root: {...}, 
        MyCustomButtonSubComponent: {...}
      }
    }
  }
})

Thank you for your answers!

1 Answers
Related