Type: Object, optional
Pass any of the options available in focus-trap's createOptions. See documentation.
Type: Boolean, optional
By default, the FocusTrap activates when the element renders. So you activate and deactivate it by the live cycle of element. If, however, you want to control when FocusTrap is activated or deactivated, you can use this option.
Type: Boolean, optional
If you would like to pause or unpause the focus trap (see focus-trap's documentation), toggle this argument.
Type: Boolean, optional
If you would like to initially focus in the element in which the modifier is being applied.
Important:
tabindex="-1"
.initialFocus
under focusTrapOptions
.Type: Array, optional
If needed, additional elements or containers can be added where focus-trap needs to be applied to. For example, absolutely/fixed-positioned dropdowns or popovers placed within a wormhole/placeholder that need to be included in said focus-trap.
As mentioned within focus-trap's documentation, the order determines where the focus will go after the last tabbable element of a DOM node/selector is reached.