@igloo-ui/color-picker
v1.0.7
Published
Color pickers allow users to assign a color to a given element.
Downloads
17
Readme
ColorPicker
Color pickers allow users to assign a color to a given element.
Installation
To install @igloo-ui/color-picker
in your project, you will need to run the following command using npm:
npm install @igloo-ui/color-picker
If you prefer Yarn, use the following command instead:
yarn add @igloo-ui/color-picker
Usage
Then to use the component in your code just import it!
import ColorPicker from '@igloo-ui/color-picker';
const [selectedColor, setSelectedColor] = React.useState("dandelion200");
<ColorPicker
onSelect={
(color) => {
setSelectedColor(color);
}
}
selectedColor={selectedColor}
/>