An HEX value color picker.
import { PlumaTestHelpers } from '@customerio/pluma-components/react/test-helpers/pluma-test-helpers' const colorPicker = PlumaTestHelpers.extract('ColorPicker', screen.getByTestId('data-test-colorPicker'));
Test Helpers coming soon™!
ColorPickerTestHelpers
changeColor
color:
string | null
=> Promise<void>
Changes the selected color
clearColor
Clears the selected color
close
Closes the color picker
getIsDisabled
=> Promise<boolean>
Checks if the color picker is currently disabled
getIsOpen
=> boolean
Checks if the color picker is currently open
getSelectedColor
=> Promise<string | null>
Gets the current color
open
Opens the color picker