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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

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

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Standalone edit row limited to HEX and RGB

vue