React Pick Color
Small color picker component for react written in TypeScript.
Install package
Add to app
Options
color
string | { r: number, g: number, b: number, a: number } | { h: number, s: number, l: number, a: number }
| required
The initial color as a hex string or rgba/hsla object.
onChange
(color: { hex: string, rgb: object, hsl: object, alpha: number }) => void
| optional
onChange callback with the current color object.
colorSets
array
| optional
showCombination
"analogous" | "monochromatic" | "splitcomplement" | "triad" | "tetrad" | "complement"
| optional
hideAlpha
boolean
| optional | default: false
Disable the alpha range handler.