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.

typescript

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.

id
requis
string
Unique DOM id generated by OrigamField for the inner input.
'aria-describedby'
requis
string
isActive
requis
boolean
True when the field is in an active (non-empty / focused) state.
isFocused
requis
boolean | undefined
True when the inner input is focused.
ref
requis
HTMLElement | undefined
Template ref to the underlying input element managed by OrigamField.
onBlur
requis
() => void
Blur handler to be bound on the inner native input.
onFocus
requis
() => 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

vue