T

ColorRowProps

Props for ColorRow.

type ColorRowProps = { … }

Members

colorstring | undefined

The chosen color as a #RRGGBB hex code, or undefined when the default applies.

The default color, swatched and opened in the picker while color is unset.

The text shown under the label while color is unset, in place of the hex code.

labelstring

The row's title.

onChange(color: string | undefined) => void

Called with the new #RRGGBB hex code, or undefined when the user resets it.