hxf31891 / react-gradient-color-picker

An easy to use color/gradient picker for React.js
MIT License
126 stars 39 forks source link

should have feature to disable solid or gradient seperatly if i disable buttons it only shows solid colors. I d'ont want the solid option just gradient one. #69

Closed muhammadwaqarqsol closed 7 months ago

muhammadwaqarqsol commented 7 months ago

you did give option for eye-drop remove color-guide remove and other close to it. I mean the color input should have something like disable solid or disable gradient. If i remove the buttons then it stays in solid mode gradient is not selected.

numanbaig commented 7 months ago

@muhammadwaqarqsol did you find any workaround to show only solid or gradient?

hxf31891 commented 7 months ago

@muhammadwaqarqsol @numanbaig There is a built in workaround for showing only solid or gradient. Simply hide the buttons using hideColorTypeBtns and then feed in the initial color with the desired option. You can see an example in the readme.