UNPKG

@nex-ui/react

Version:

🎉 A beautiful, modern, and reliable React component library.

21 lines (18 loc) • 519 B
import { ReactElement, Ref, FocusEventHandler } from 'react'; interface FocusTrapProps { children: ReactElement<{ ref?: Ref<any>; onFocus?: FocusEventHandler; }>; active?: boolean; /** * To pause or unpause the trap while it's `active`. */ paused?: boolean; /** * If true, the modal will restore focus to previously focused element once the modal is hidden or unmounted. * @default true */ restoreFocus?: boolean; } export type { FocusTrapProps };