mikbry / material-ui-color

The lightest colorpicker, palette, colorinput, colorbutton ⚡ No dependencies. It uses React hooks, support Typescript theming and more !
https://mikbry.github.io/material-ui-color/
MIT License
146 stars 34 forks source link

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

Open szado opened 3 years ago

szado commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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