color-from-image
v1.0.3
Published
Pick color from an image
Downloads
8
Maintainers
Readme
color-from-image
Pick color from an image
Install
npm install --save color-from-imageUsage
import React from 'react'
import ColorFromImage from 'color-from-image'
const App = () => {
return <ColorFromImage src='...' />
}
export default AppDocumentation
You can use all img attributes.
| Parameter | Type | Description |
| :-------------- | :--------------------------- | :--------------------------- |
| hideColor | boolean | To hide color view in hex. |
| onChangeColor | (hexColor: string) => void | To get color on mouse moved. |
| onChooseColor | (hexColor: string) => void | To get color on click. |
License
MIT © abdulrahmanAlh
