A radial colour picker with hue, saturation and alpha controls.
number |
300 |
How long the petals take to open and close, in milliseconds. |
circularBarWidth | number | 12 | The thickness of the ring that shows the selected colour around the petals, in pixels. |
collapsible | boolean | true | Whether the picker closes to its centre button. When |
colors | ColorInput[] | – | The petal colours, as hex, |
coreSize | number | 32 | The diameter of the centre button, in pixels. |
defaultValue | BlossomColorPickerValue | – | The colour selected at first, when it isn't controlled. |
disabled | boolean | false | Whether the picker ignores input. |
initialExpanded | boolean | false | Whether the picker starts open. |
labels | Partial<ColorPickerLabels> | – | Replaces the built-in text for this instance. See |
onChange | ((color: BlossomColorPickerColor) => void) | – | Called with the new colour, in every format, whenever it changes. |
onCollapse | ((color: BlossomColorPickerColor) => void) | – | Called with the selected colour when the picker closes. |
openOnHover | boolean | false | Whether hovering the picker opens it, as well as clicking. Only applies when |
petalSize | number | 32 | The diameter of each petal, in pixels. |
showCoreColor | boolean | true | Whether the centre shows the selected colour while open. When |
showLightnessSlider | boolean | – | Whether to show the Lightness arc slider beside the petals while open. |
showOpacitySlider | boolean | true | Whether to show the Opacity arc slider, on the side opposite the Lightness slider, while open. |
sliderOffset | number | 30 | The distance between the colour ring and the arc sliders, in pixels. |
sliderPosition | "top"|"bottom"|"left"|"right" | – | The side the Lightness slider sits on. The Opacity slider takes the opposite side. When unset, the picker picks the side with the most room. |
sliderWidth | number | 12 | The thickness of the arc sliders, in pixels. |
value | BlossomColorPickerValue | – | The selected colour. Use with |
Accepts className and render, plus every native attribute of the element it renders.