IColorPickerFieldProps

interface
Form & Input

Props for OrigamColorPickerField — a text-field that opens an inline ColorPicker menu, inheriting the full field + input pipeline (validation, density, adjacent, transition).

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.

menu
boolean
Control the open/closed state of the colour picker menu programmatically.
menuProps
IMenuProps
Props passed through to the underlying OrigamMenu component (offset, placement, z-index, etc.).
openOnClear
boolean
Reopen the picker menu when the clear button is activated.
closeText
string
Label of the close/confirm button at the bottom of the picker panel.
openText
string
Accessible label of the trigger button that opens the picker.
closeOnSelect
boolean
Automatically close the picker when a colour is committed (click outside or confirm).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Colour picker field with label and close-on-select

vue