reakit
Version:
Toolkit for building accessible rich web apps with React
8 lines (7 loc) • 300 B
TypeScript
import * as React from "react";
import { DialogOptions } from "../Dialog";
/**
* When the focused child gets removed from the DOM, we make sure to move focus
* to the dialog.
*/
export declare function useFocusOnChildUnmount(dialogRef: React.RefObject<HTMLElement>, options: DialogOptions): void;