Skip to content
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

feat: allow to pass props to material-ui underlying components #143

Open
szado opened this issue Apr 17, 2021 · 2 comments
Open

feat: allow to pass props to material-ui underlying components #143

szado opened this issue Apr 17, 2021 · 2 comments

Comments

@szado
Copy link

szado commented Apr 17, 2021

Is your feature request related to a problem? Please describe.
It would be usefull if passing your own properties to eg. material-ui Button (for ColorButton) was possible, like it is for built in library components.
Example: <TextField InputLabelProps={{ shrink: true }} /> (InputLabelProps) from material-ui docs (https://material-ui.com/components/text-fields/#shrink).

Currently it's not possible to disable ColorButton or add css class to it.

@mikbry
Copy link
Owner

mikbry commented Apr 28, 2021

ColorButton and ColorInput passes extra props to Material-Ui sub-components Button and Input. But yes if you use Typescript they don't extends from Material-Ui sub-components

@Katli95
Copy link

Katli95 commented Dec 11, 2021

+1 For this, having the option to port params to the underlying <TextField/> control from mui in the <ColorPicker/> would also be awesome! I'm using the outlined variants for all of my controls, and since I can't configure it for the <ColorPicker/> I'll have to resource to either building it myself using the other components in the library or overriding css, neither is very appealing for a solution which could just support many of the configurations of mui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants