-
-
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
A styled helper that works like classes #26685
Comments
Maybe this is better const StyledDialog = styled(Dialog)((theme, ...props) => {
root: {
color: 'red',
},
container: {
marginTop: props.nested ? theme.spacing(1): 0
}
}) |
This could have something to do with it, recently this RFC was opened to add support to the |
We try to keep the |
I don't think we will spend time on this. Also, it should rely on CSS ( |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @Jack-Works How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Summary 💡
The main reason that blocking me to adopt styled component is that I have to write things like this:
It's would be better to have an API like this:
Motivation 🔦
It's cleaner and much type-safe. Please consider this.
Here is my idea in TypeScript
The text was updated successfully, but these errors were encountered: