createInput API
API reference for the createInput composable.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| createInput | Forms |
| createValidation | Forms |
| createForm | Forms |
| Input | Forms |
Functions
createInput
(options: InputOptions<T>) => InputContext<T>Options
errorMessages
MaybeRefOrGetter<MaybeArray<string> | undefined>Manual error messages — merged with rule-based errors.
Properties
id
IDlabel
string | undefinedname
string | undefinedform
string | undefinedrequired
boolean | undefineddescriptionId
stringerrorId
stringdescriptions
RegistryContext<RegistryTicketInput<unknown>, RegistryTicket<unknown> & RegistryTicketInput<unknown>>fieldErrors
RegistryContext<RegistryTicketInput<unknown>, RegistryTicket<unknown> & RegistryTicketInput<unknown>>hasDescription
Readonly<Ref<boolean, boolean>>hasError
Readonly<Ref<boolean, boolean>>value
Ref<T, T>isDirty
Readonly<Ref<boolean, boolean>>isFocused
ShallowRef<boolean>isDisabled
Readonly<Ref<boolean, boolean>>isReadonly
Readonly<Ref<boolean, boolean>>isPristine
Readonly<Ref<boolean, boolean>>isTouched
ShallowRef<boolean>errors
Readonly<Ref<string[], string[]>>isValid
Readonly<Ref<boolean | null, boolean | null>>isValidating
Readonly<Ref<boolean, boolean>>state
Readonly<Ref<InputState, InputState>>