Usage

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

Using onChange

With default color

Wtih confirm button

With swatches

With popover

Combine with Popover component to position ColorPicker as an overlay.

Props

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