UNPKG
react-image-palette-hook
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.0
A React hook to extract and generate color palettes from images
react-image-palette-hook
/
dist
/
hooks
/
usePalette.d.ts
5 lines
(4 loc)
•
130 B
TypeScript
View Raw
1
2
3
4
5
import
{
PaletteData
}
from
'../types'
;
export
declare
const
usePalette
:
(
imageUrl
:
string
|
null
) =>
{
data
:
PaletteData
; };