[typography] Allow sx prop-like responsive values on the variant prop #41530
Labels
component: Typography
The React component.
customization: theme
Centered around the theming features
Summary
For a lot of props, the Sx syntax is availble, like
Or even
But this syntax doesn't work with the variant prop. => the following is not working
Examples
No response
Motivation
It would be great if this syntax could work. :
Simply to use a different variant depending on screen size (very common use case I think)
It would be very usefull in projects that deal with multiple themes.
It's also usefull during double run (theme migration while both old theme and new theme must coexist in the code).
Search keywords: variant typography
The text was updated successfully, but these errors were encountered: