material-ui
material-ui copied to clipboard
[docs] Use slot variants over `theme.variants`
closes #30412
Based on https://github.com/mui/material-ui/issues/30412#issuecomment-1894892080, theme.variants is no longer needed.
Using slot variants reduces the API surface, allows developers to customize any slot, and is compatible with Pigment CSS too.
- [x] I have followed (at least) the PR section of the contributing guide.
Netlify deploy preview
Bundle size report
No bundle size changes (Toolpad) No bundle size changes
Generated by :no_entry_sign: dangerJS against 781491375d2c6f65aba0f4bd73b99e7fbfda77f6