@benmarch/a11y-toolkit
    Preparing search index...

    Class FocusTrap

    Ensures that the user can only focus on elements within a specified container ("trap").

    When enabled, the user will not be able to interact with elements outside the trap.

    Be sure to disable when done to prevent memory leaks.

    Index

    Constructors

    Properties

    container: Elemental
    direction: -1 | 1 = 1
    focusMemory: FocusMemory = ...
    isActive: boolean = false

    Methods