UNPKG

react-dnd-accessible-backend

Version:

An add-on backend for react-dnd that provides support for keyboards and screenreaders by default.

15 lines (14 loc) 554 B
export interface FocusManagerOptions { getFocusableElements(): HTMLElement[]; } export interface FocusOptions { wrap?: boolean; from?: HTMLElement; } export interface FocusManager { getNextFocusableElement(options?: FocusOptions): HTMLElement | null; getPreviousFocusableElement(options?: FocusOptions): HTMLElement | null; getFirstFocusableElement(): HTMLElement | null; getLastFocusableElement(): HTMLElement | null; } export declare function createFocusManager({ getFocusableElements }: FocusManagerOptions): FocusManager;