Extensions

Press shift + S to search API reference.

React component

ColorPaletteSynced

View source

Props

interface ColorPaletteSyncedProps 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.

disabledundefined | false | true

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

globalConfigKeyGlobalConfigKey

A string key or array key path in GlobalConfig. The selected color will always reflect the value stored in GlobalConfig for this key. Selecting a new color will update GlobalConfig.

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.