| 1 |
import { Options as FocusTrapOptions } from 'focus-trap'; |
| 2 |
import { ComponentPropsWithRef } from 'react'; |
| 3 |
export interface FocusTrapProps extends ComponentPropsWithRef<'div'> { |
| 4 |
active?: boolean; |
| 5 |
paused?: boolean; |
| 6 |
focusTrapOptions?: FocusTrapOptions; |
| 7 |
/** Prevent from scrolling to the previously focused element on deactivation */ |
| 8 |
preventScrollOnDeactivate?: boolean; |
| 9 |
/** Unique id that can optionally be applied to focus trap */ |
| 10 |
id?: string; |
| 11 |
} |
| 12 |
export declare const FocusTrap: import("react").ForwardRefExoticComponent<Omit<FocusTrapProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>; |
| 13 |
//# sourceMappingURL=FocusTrap.d.ts.map |