IFieldDefaultSlotProps
interface
Slots
Shape of the slot props injected into the default slot of OrigamField — exposes the id, aria-describedby, active/focused state, ref and focus handlers so inner input elements can wire up correctly.
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.
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.
- idrequisstring
- Unique DOM id generated by OrigamField for the inner input.
- 'aria-describedby'requisstring
- isActiverequisboolean
- True when the field is in an active (non-empty / focused) state.
- isFocusedrequisboolean | undefined
- True when the inner input is focused.
- refrequisHTMLElement | undefined
- Template ref to the underlying input element managed by OrigamField.
- onBlurrequis() => void
- Blur handler to be bound on the inner native input.
- onFocusrequis() => void
- Focus handler to be bound on the inner native input.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Wiring a native input inside OrigamField