Usage

import { ColorPicker } from '@loomhq/lens'
<ColorPicker onChange={func}/>

Using onChange

#ffffff

With default color

Wtih confirm button

Temp color: #ffffff
Final color: #ffffff

With swatches

Trigger

Use react-laag to position and trigger the ColorPicker.

Trigger

Props

name
type
default
defaultColor
string
'#ffffff'
confirmButton
React.ReactNode
swatches
[]
onChange
() => void