[docs] do slots in styleOverrides always support callbacks? #44293
Labels
customization: theme
Centered around the theming features
docs
Improvements or additions to the documentation
support: docs-feedback
Feedback from documentation page
Related page
https://mui.com/material-ui/customization/theme-components/#theme-style-overrides
Kind of issue
Missing information
Issue description
https://mui.com/material-ui/customization/theme-components/#theme-style-overrides is not saying anything about the support for callbacks on a slot in styleOverrides.
https://mui.com/material-ui/customization/theme-components/#the-sx-syntax-experimental not only introduced me to the experimental sx syntax (great one!), but also introduced me to using callbacks inside of slots in styleOverrides.
my use-case would be something like this:
If this is possible, I would suggest https://mui.com/material-ui/customization/theme-components/#theme-style-overrides to tell about it! The same applies to the usage of
variants
, if you can utilise callbacks containing a theme in itsstyle
key, than I would suggest the docs to at least mention it briefly. Generically speaking; any place where this is possible might need a brief extra sentence that callbacks are supported.Context
Here is the example I saw using the callbacks:
Search keywords: styleOverrides, callback
The text was updated successfully, but these errors were encountered: