pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
22 lines (21 loc) • 697 B
TypeScript
import * as React from "react";
export interface FocusTrapProps extends React.PropsWithChildren<{}> {
onEscape: () => void;
id?: string;
className?: string;
arrowKeyNavigation?: boolean;
dontStealFocus?: boolean;
includeOutsideTabOrder?: boolean;
dontRestoreFocus?: boolean;
}
export declare const FocusTrap: (props: FocusTrapProps) => JSX.Element;
interface FocusTrapRegionProps extends React.PropsWithChildren<{}> {
enabled: boolean;
order?: number;
onEscape?: () => void;
id?: string;
className?: string;
divRef?: (ref: HTMLDivElement) => void;
}
export declare const FocusTrapRegion: (props: FocusTrapRegionProps) => JSX.Element;
export {};