@indielayer/ui
Version:
Indielayer UI Components with Tailwind CSS build for Vue 3
12 lines (11 loc) • 477 B
TypeScript
import { type Ref, type ComponentPublicInstance } from 'vue';
export declare function useFocusTrap(): {
initFocusTrap: (targetRef: Ref<HTMLElement | ComponentPublicInstance | null> | HTMLElement | ComponentPublicInstance | null, options?: {
initialFocusIndex?: number;
returnFocusOnClear?: boolean;
}) => Promise<void>;
clearFocusTrap: (options?: {
returnFocus?: boolean;
}) => void;
focusable: Ref<HTMLElement[], HTMLElement[]>;
};