Use WithStyles
in runtime (instead of just as an HOC) -- allow for dynamic styles
#13641
Closed
2 tasks done
Labels
Expected Behavior
I'm not exactly sure how the contract would be, but I would like to use
WithStyles
in runtime, so I can modify thestyles
that I pass to it in runtime.Current Behavior
(I believe) I can only call the HOC, locking in the
styles
that are passed at build time.Examples
I'm assuming it wouldn't be quite as simple as exporting the
WithStyles
class, assuming it's not exported right now gives me the impression it's not possible as a feature today.Context
We are building a system that allows users to create pages, and they can select "stylesheets" of sorts that are different collections of JSS so they can dynamically change the look of the page. They will eventually be able to provide their own JSS.
The text was updated successfully, but these errors were encountered: