bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
17 lines (16 loc) • 1.1 kB
text/typescript
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<import('../types/AriaInvalid').StringAriaInvalid | undefined>;
computedValue: import('vue').ComputedRef<Numberish | undefined>;
onInput: (evt: Readonly<Event>) => void;
onChange: (evt: Readonly<Event>) => void;
onBlur: (evt: Readonly<FocusEvent>) => void;
focus: () => void;
blur: () => void;
stateClass: import('vue').ComputedRef<"is-valid" | "is-invalid" | null>;
isDisabled: import('vue').ComputedRef<boolean>;
};