Vizel API / react/src / VizelColorPickerProps
Interface: VizelColorPickerProps
Defined in: packages/react/src/components/VizelColorPicker.tsx:10
Properties
allowCustomColor?
optional allowCustomColor?: boolean;Defined in: packages/react/src/components/VizelColorPicker.tsx:22
Enable custom HEX input (default: true)
applyAriaLabel?
optional applyAriaLabel?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:36
Aria label for apply button
applyTitle?
optional applyTitle?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:34
Title for apply button
className?
optional className?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:20
Custom class name
colors
colors: readonly VizelColorDefinition[];Defined in: packages/react/src/components/VizelColorPicker.tsx:12
Color palette to display
hexPlaceholder?
optional hexPlaceholder?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:32
Placeholder for hex input
label?
optional label?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:18
Label for accessibility
noneValues?
optional noneValues?: string[];Defined in: packages/react/src/components/VizelColorPicker.tsx:28
"None" option color values (e.g., ["transparent", "inherit"])
onChange
onChange: (color) => void;Defined in: packages/react/src/components/VizelColorPicker.tsx:16
Callback when color is selected
Parameters
| Parameter | Type |
|---|---|
color | string |
Returns
void
recentColors?
optional recentColors?: string[];Defined in: packages/react/src/components/VizelColorPicker.tsx:24
Recent colors to display
recentLabel?
optional recentLabel?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:30
Label for recent colors section
showRecentColors?
optional showRecentColors?: boolean;Defined in: packages/react/src/components/VizelColorPicker.tsx:26
Show recent colors section (default: true)
value?
optional value?: string;Defined in: packages/react/src/components/VizelColorPicker.tsx:14
Currently selected color