UNPKG

@pdftron/webviewer-react-toolkit

Version:

A React component library for integrating with PDFTron WebViewer API.

15 lines (14 loc) 538 B
import { FC, ReactElement, RefAttributes } from 'react'; import { UseFocusTrapOptions } from '../../hooks'; export interface FocusLockProps extends UseFocusTrapOptions { /** * When true, focus will be locked within the child element. */ locked?: boolean; /** * A child with a targetable ref to lock focus on. This component must accept * the `ref` prop in order to work with `FocusTrap`. */ children: ReactElement<RefAttributes<HTMLElement>>; } export declare const FocusTrap: FC<FocusLockProps>;