material-ui-color icon indicating copy to clipboard operation
material-ui-color copied to clipboard

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

Open szado opened this issue 3 years ago • 2 comments

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.

szado avatar Apr 17 '21 15:04 szado

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

mikbry avatar Apr 28 '21 13:04 mikbry

+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.

Katli95 avatar Dec 11 '21 15:12 Katli95