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.

typescript

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.

colorHsv
THSVA | 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.
disabled
boolean
Make all text inputs read-only and disable the mode switcher.
mode
TColorModes
Active colour input mode (e.g. "rgb", "hsl", "hex"). Synced via update:mode.
modes
Array<TColorModes>
Subset of colour modes exposed as mode-switcher options. Defaults to all supported modes.
ariaLabel
string

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

vue