index.d.ts 396 B

123456789
  1. import type { ObjectDirective } from 'vue';
  2. export declare const FOCUSABLE_CHILDREN = "_trap-focus-children";
  3. export declare const TRAP_FOCUS_HANDLER = "_trap-focus-handler";
  4. export interface TrapFocusElement extends HTMLElement {
  5. [FOCUSABLE_CHILDREN]: HTMLElement[];
  6. [TRAP_FOCUS_HANDLER]: (e: KeyboardEvent) => void;
  7. }
  8. declare const TrapFocus: ObjectDirective;
  9. export default TrapFocus;