UNPKG

@massds/mayflower-react

Version:

React versions of Mayflower design system UI components

15 lines (14 loc) 733 B
/** * focusTrapping: Trap keyboard focus inside of a modal * @param {string} focusableSelectors(requied): css selectors for all the focusable elements inside of the modal * @param {string} modalSelector(requied): css selector for the modal container * @param {string} closeButtonSelector(optional): If the modal close button is outside of the modal container, add the css selector for it to be included as the first focusable element * @param {event} keyEvent(requied): keydown event */ declare const _default: ({ focusableSelectors, closeButtonSelector, modalSelector, keyEvent }: { focusableSelectors?: string; closeButtonSelector: any; modalSelector: any; keyEvent: any; }) => void; export default _default;