[Ark][React] How to use ColorPicker with both RGBA and HSL values in React? #1647
Replies: 1 comment 1 reply
-
@Infektid782 thanks for taking your time to create the issue. Depending on your current color format, you will have diffent channels available 0a5af02 <ColorPicker.View format="rgba">
<ColorPicker.ChannelInput channel="hex" />
<ColorPicker.ChannelInput channel="alpha" />
</ColorPicker.View> or in HSL <ColorPicker.View format="hsl">
<ColorPicker.ChannelInput channel="hue" />
<ColorPicker.ChannelInput channel="saturation" />
<ColorPicker.ChannelInput channel="lightness" />
</ColorPicker.View> It is somewhat similar to the <DatePicker.View view="day">{/* All the things in Day View */}</DatePicker.View/> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
According to documentation, it should be possible, to achieve the following feature:

In our experience, if we provide RGBA value, we can only use the ChannelInputs without ColorPickerArea and ColorPickerChannelSliderTrack and if we provide HSL value, then it is the other way around. Providing both values, the component will only use the one we provide first. Examples for values:
We've noticed, that the conversion from and to HEX colors works with both RGBA and HSL values, but the details.value never contains it.
Beta Was this translation helpful? Give feedback.
All reactions