@atlaskit/dropdown-menu
Version:
A dropdown menu displays a list of actions or options to a user.
23 lines (22 loc) • 613 B
TypeScript
import React, { type FC, type ReactNode } from 'react';
import { type FocusableElementRef } from '../../types';
/**
*
*
* Context provider which maintains the list of focusable elements and a method to
* register new menu items.
* This list drives the keyboard navigation of the menu.
*
*/
export declare const FocusManagerContext: React.Context<{
menuItemRefs: FocusableElementRef[];
registerRef(ref: FocusableElementRef): void;
}>;
/**
* Focus manager logic.
*/
declare const FocusManager: FC<{
children: ReactNode;
onClose: (e: KeyboardEvent) => void;
}>;
export default FocusManager;