UNPKG

@renderlesskit/react

Version:

Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit

8 lines (7 loc) 300 B
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;