This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-color-palette) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🎨 Lightweight <ColorPicker /> component for React.
import{ ColorPicker, useColor, type IColor }from"react-color-palette";import"react-color-palette/css";exportfunctionApp(){const[color, setColor]=useColor("#123123");constonChangeComplete=(color: IColor)=> localStorage.setItem("color", color.hex);return<ColorPickerhideInput={["rgb","hsv"]}color={color}onChange={setColor}onChangeComplete={onChangeComplete}/>}
API
<ColorPicker />
The main component, which includes: <Saturation />, <Hue />, <Alpha /> and <Fields /> components for instant use. If you need a custom layout, then you can use <Saturation />, <Hue /> and <Alpha /> components separately, which are also exported from the library.