Package Exports
- @uiw/react-color
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 (@uiw/react-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-color is a tiny color picker component for React apps.
Getting Started
npm i @uiw/react-color
import { Sketch } from '@uiw/react-color';
import { Saturation, Alpha, Hue, Slider, ShadeSlider, hsvaToHslaString } from '@uiw/react-color';
function Demo() {
const [hex, setHex] = useState("#fff");
return (
<Sketch
style={{ marginLeft: 20 }}
color={hex}
onChange={(color) => {
setHex(color.hex);
}}
/>
);
}
Packages
License
Licensed under the MIT License.