-
Notifications
You must be signed in to change notification settings - Fork 25
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
The component props should be any type #47
Comments
component should be a string or a component. A component gets a bit more complicated trying to define its type, so I went with the more typesafe, but not correct in every use case, String rather than making it an open Any type or trying to define the proper typesafe type. Do you have a use case where you need it to be some type of component rather than an html component (i.e. string)? |
Usecase like this https://material-ui.com/zh/guides/composition/#routing-libraries |
Yip, that is a good use case... I shall think about it... |
This was changed some time ago for buttons and typography... shall leave it open for now as component prop is used in lots of different components. |
Closing for now, new use cases can be added as needed. |
Such as component prop for button
https://material-ui.com/zh/api/button-base/
The text was updated successfully, but these errors were encountered: