-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withStyle access to component props #12768
Comments
@mfoncho It's a duplicate of #7633 |
@oliviertassinari thanks for the reference thread, but after much talk about getting it into the 1.x is the api there? or should i have to write a HOC to wrap the |
@mfoncho The issue is still open. It's one of my top priorities. I also want to look into emotion at the same time, see if we can leverage it. |
You can use my library @mfoncho, it match what you like : https://github.com/JacquesBonet/jss-material-ui |
@JacquesBonet not so much of a library is needed to implement the required feature but just a simple like this StyledPropsHOC |
Expected Behavior
Is the currently an api to accessing the component props from the style like styled-components?
say something like this:
Current Behavior
I'm currently using inline styling
Example
Context
Generate styles based on the props of the component like determining theme, passing in background colors etc.
The text was updated successfully, but these errors were encountered: