IColorPickerEditProps
interface
Color
Props for OrigamColorPickerEdit — the text-input row that lets users type colour values in a chosen mode (RGB, HSL, HSV, HEX) and switch between modes.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
Inheritance
Extends
Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- colorHsvTHSVA | null
- Current colour as an HSVA tuple. The edit row converts this to the active mode for display and sends updates back through update:colorHsv.
- disabledboolean
- Make all text inputs read-only and disable the mode switcher.
- modeTColorModes
- Active colour input mode (e.g. "rgb", "hsl", "hex"). Synced via update:mode.
- modesArray<TColorModes>
- Subset of colour modes exposed as mode-switcher options. Defaults to all supported modes.
- ariaLabelstring
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Standalone edit row limited to HEX and RGB