ColorSwatchProps Interface
Deprecated in 4.11.x. Props of deprecated component ColorSwatch.
Properties for the ColorSwatch React component
Extends
- ButtonHTMLAttributes<HTMLButtonElement>
- CommonProps
Properties
Name | Type | Description | |
---|---|---|---|
colorDef | ColorDef | color specification | |
onColorPick | undefined | (color: ColorDef, e: MouseEvent<Element, MouseEvent>) => void | ||
round | undefined | boolean | Show swatches as squares unless round is set to true |
Inherited properties
Name | Type | Inherited from | Description |
---|---|---|---|
itemId | undefined | string | CommonProps | Optional unique identifier for item. |
Defined in
Last Updated: 05 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.