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
Color picker component for React.
Getting Started
npm i @uiw/react-color
import { Saturation, Alpha, Hue, hsvaToHslaString } from '@uiw/react-color';
function Demo() {
const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 });
return (
<Alpha
width={200}
hsva={hsva}
onChange={(newAlpha) => {
setHsva({ ...hsva, ...newAlpha });
}}
/>
);
}
Packages
@uiw/react-color
@uiw/react-color-saturation
@uiw/react-color-hue
@uiw/react-color-alpha
@uiw/react-color-shade-slider
@uiw/react-color-slider
@uiw/react-color-sketch
@uiw/color-convert
@uiw/react-drag-event-interactive