@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
11 lines • 579 B
TypeScript
import { Options as FocusTrapOptions } from 'focus-trap';
import { ComponentPropsWithRef } from 'react';
export interface FocusTrapProps extends ComponentPropsWithRef<'div'> {
active?: boolean;
paused?: boolean;
focusTrapOptions?: FocusTrapOptions;
/** Prevent from scrolling to the previously focused element on deactivation */
preventScrollOnDeactivate?: boolean;
}
export declare const FocusTrap: import("react").ForwardRefExoticComponent<Omit<FocusTrapProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
//# sourceMappingURL=FocusTrap.d.ts.map