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.
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.
- menuboolean
- Control the open/closed state of the colour picker menu programmatically.
- menuPropsIMenuProps
- Props passed through to the underlying OrigamMenu component (offset, placement, z-index, etc.).
- openOnClearboolean
- Reopen the picker menu when the clear button is activated.
- closeTextstring
- Label of the close/confirm button at the bottom of the picker panel.
- openTextstring
- Accessible label of the trigger button that opens the picker.
- closeOnSelectboolean
- 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