Skip to content

Roman-Flossler/image-color-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration of React Image Color Picker

imgUrl = {string}    // path to an image - a source for color picking
pickerMaxSize = {[ number , number ]}    // max width and height of the component

Optional:
roundness = {number}    // border radius of the component
selectImgButton = {boolean}    // if true, there will be a button for new image selection
onColorPicking = {function}    // callback function which gets a color while picking
onColorPicked = {function}    // callback function which gets a picked color
onColorPickedText = {string}    // a text to display after a color is picked
showRGB = {boolean}    // if true, a color's RGB value will be shown