mapbox / react-colorpickr

A themeable colorpicker with HSL and RGB support for React

Home Page:https://labs.mapbox.com/react-colorpickr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding "show" props

conorhastings opened this issue · comments

Wondering if there would be support for adding "show props" here. For example application that does not support alpha transparency can pass in prop to not show the alpha picker, etc... Thanks!

If we added this it seems like we'd need to add a validation step to make sure the color picker is never initialized with an alpha < 1.

Yeah agreed that would have to happen and makes this is a little trickier, but only if the user passes in the option to not show alpha. I'd be happy to work on something/submit a PR and see what you guys think.

Would love to see a little more visibility control over UI elements in the picker. Sometimes all you want is a color field.