You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
396 B

1 month ago
  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;