-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
[Material-UI v5 alpha 32] experimentalStyled missing styleProps in typescript definition #26079
Comments
Thanks for the report, was fixed in #25928, will be available in the next release. |
Could it be seen as a duplicate of #24862? Spreading extra props might actually be something we could document in https://next--material-ui.netlify.app/guides/styled-engine/ (in addition to the existing customization page). We currently cover it in https://next--material-ui.netlify.app/customization/how-to-customize/#dynamic-css. |
Yeah, makes sense. 👍 |
Thanks for the quick turnaround, I see I'm not the only one working on week-ends, guys really no need. From a documentation side a bit around this experimentalStyle function would be welcomed as an example on how to create a composed component like an MUI one from scratch. To get a hint what we are trying to achieve (selected is a new prop) :
my one cent |
Note, in the end we decided not to include the The main motivation was that, if developers need it, they are likely going to need to specify custom type for it, so we decided to better make it explicit, rather then implicit. As the prop is not added anymore, no need for updating the docs. |
Trying to create my own component using experimentalStyled mimicking Autocomplete in typescript I got a compile error on styleProps property
Property 'styleProps' does not exist on type ...
In Sandbox a simplified example https://codesandbox.io/s/interesting-babbage-zyrpz?file=/src/Demo.tsx:658-757
The text was updated successfully, but these errors were encountered: