Vizel API / react/src / VizelColorPickerProps
Interface: VizelColorPickerProps
Defined in: packages/react/src/components/VizelColorPicker.tsx:11
Properties
allowCustomColor?
optional allowCustomColor?: boolean;Defined in: packages/react/src/components/VizelColorPicker.tsx:23
Enable custom HEX input (default: true)
applyAriaLabel?
optional applyAriaLabel?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:37
Aria label for apply button
applyTitle?
optional applyTitle?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:35
Title for apply button
className?
optional className?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:21
Custom class name
colors
colors: readonly VizelColorDefinition[];Defined in: packages/react/src/components/VizelColorPicker.tsx:13
Color palette to display
hexPlaceholder?
optional hexPlaceholder?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:33
Placeholder for hex input
label?
optional label?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:19
Label for accessibility
noneValues?
optional noneValues?: string[];Defined in: packages/react/src/components/VizelColorPicker.tsx:29
"None" option color values (e.g., ["transparent", "inherit"])
onChange
onChange: (color) => void;Defined in: packages/react/src/components/VizelColorPicker.tsx:17
Callback when color is selected
Parameters
| Parameter | Type |
|---|---|
color | string |
Returns
void
recentColors?
optional recentColors?: string[];Defined in: packages/react/src/components/VizelColorPicker.tsx:25
Recent colors to display
recentLabel?
optional recentLabel?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:31
Label for recent colors section
showRecentColors?
optional showRecentColors?: boolean;Defined in: packages/react/src/components/VizelColorPicker.tsx:27
Show recent colors section (default: true)
value?
optional value?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:15
Currently selected color