UNPKG

bootstrap-vue-next

Version:

BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.

16 lines (15 loc) 1.01 kB
import { Numberish } from '../types/CommonTypes'; import { Ref, ShallowRef } from 'vue'; import { CommonInputProps } from '../types/FormCommonInputProps'; export declare const useFormInput: (props: Readonly<CommonInputProps>, input: Readonly<ShallowRef<HTMLInputElement | null>> | Readonly<ShallowRef<HTMLTextAreaElement | null>>, modelValue: Ref<Numberish | null>, modelModifiers: Record<"number" | "lazy" | "trim", true | undefined>) => { input: Readonly<ShallowRef<HTMLInputElement | null>> | Readonly<ShallowRef<HTMLTextAreaElement | null>>; computedId: import('vue').ComputedRef<string>; computedAriaInvalid: import('vue').ComputedRef<"grammar" | "spelling" | "true" | "false" | undefined>; onInput: (evt: Readonly<Event>) => void; onChange: (evt: Readonly<Event>) => void; onBlur: (evt: Readonly<FocusEvent>) => void; focus: () => void; blur: () => void; forceUpdateKey: Ref<number, number>; stateClass: import('vue').ComputedRef<"is-valid" | "is-invalid" | null>; };