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.
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.
- 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
É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