Extensions

Press shift + S to search API reference.

React component

ColorPalette

View source

Props

interface ColorPaletteProps extends SharedColorPaletteProps
allowedColorsArray<string>

The list of colors to display in the color palette.

classNameundefined | string

Additional class names to apply to the color palette, separated by spaces.

colorstring | null

The current selected Color option.

disabledundefined | false | true

If set to true, the color palette will not allow color selection.

onChangeundefined | function (arg1: string) => unknown

A function to be called when the selected color changes.

squareMarginundefined | number

The margin between color squares in the color palette.

styleReact.CSSProperties

Additional styles to apply to the color palette.