UNPKG

element-plus

Version:

A Component Library for Vue 3

13 lines (12 loc) 496 B
import type { ShallowRef } from 'vue'; interface UseFocusControllerOptions { afterFocus?: () => void; afterBlur?: () => void; } export declare function useFocusController<T extends HTMLElement>(target: ShallowRef<T | undefined>, { afterFocus, afterBlur }?: UseFocusControllerOptions): { wrapperRef: ShallowRef<HTMLElement | undefined>; isFocused: import("vue").Ref<boolean>; handleFocus: (event: FocusEvent) => void; handleBlur: (event: FocusEvent) => void; }; export {};