@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
15 lines (14 loc) • 526 B
TypeScript
import type { ShallowRef } from 'vue';
export declare const useInputEvent: ({ inputRef, }: {
inputRef: ShallowRef<HTMLInputElement | undefined>;
}) => {
handleInput: (event: Event) => void;
handleChange: (event: Event) => void;
blur: () => void | undefined;
handleBlur: (event: FocusEvent) => void;
focused: import("vue").Ref<boolean>;
focus: () => Promise<void>;
handleFocus: (event: FocusEvent) => void;
handleKeydown: (evt: KeyboardEvent) => void;
select: () => void | undefined;
};