createInput API
API reference for the createInput composable.
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
stringhasDescription
ShallowRef<boolean>hasError
ShallowRef<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>>