-
-
Notifications
You must be signed in to change notification settings - Fork 922
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
Make it possible to override sub components and/or set props on them #437
Comments
Thanks for the suggestion, this is indeed a good implementation. Follow-up we can consider this approach when designing. But I still don't recommend using two UI frameworks in one project. If the design style of rsuite does not meet your product requirements, you can customize your UI style by modifying the less variable. https://github.com/rsuite/rsuite/blob/master/styles/variables.less |
We tried to avoid it but your
This, aswell as adding our of own css is what we are doing but this results in alot of duplication of styling/behaviour logic and it requires us to update both solutions any time one of them change. Off topic: I would suggest that you switch to some css-in-js solution. The way material-ui does it is by far the best experience I have had when it comes to customizability in a component library (that, together with the |
The main reason we don't currently consider In some business scenarios, multiple sets of UI-style themes need to be generated. But with regard to the support of |
Ok, that should be possible with css-in-js also, see: https://material-ui.com/customization/themes/
Sound good, thanks for the consideration! :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am trying to implement the rsuite
MultiCascader
component and make use of as much as possible of our own component that usematerial-ui
components.I was able to make use of our own select toggle component by overriding the
toggleComponentClass
but for the other parts of the multi cascader it looks like I would have to re-build too much of the rsuite logic to make it worth it.With the
material-ui
library you can set props and/or override the component of sub-components of amaterial-ui
component. For example, see theinputProps
andinputComponent
props on theInput
component docs here: https://material-ui.com/api/input/#propsIt would be useful if you could override component and send props to the different sub-components of
MultiCascader
like Checkbox, DropdownMenuItem (which has thelabelComponentClass
prop, but I cant override it 😅), arrow/caret etc.The text was updated successfully, but these errors were encountered: