mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
9117747d41
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
21 lines
712 B
TypeScript
21 lines
712 B
TypeScript
import { createFocusTrap as _createFocusTrap } from 'focus-trap';
|
|
/**
|
|
* Creates a focus trap for the given element with the given options.
|
|
*
|
|
* This function applies some default options that are different to the library.
|
|
* Your own options still override these custom defaults:
|
|
*
|
|
* ```json
|
|
* {
|
|
escapeDeactivates: false,
|
|
* }
|
|
* ```
|
|
*
|
|
* @param element The element to be the focus trap, or a selector that will be used to find the element.
|
|
*
|
|
* @see https://github.com/focus-trap/focus-trap#readme - Library documentation
|
|
*/
|
|
declare function createFocusTrap(...args: Parameters<typeof _createFocusTrap>): ReturnType<typeof _createFocusTrap>;
|
|
export * from 'focus-trap';
|
|
export { createFocusTrap };
|