MenuProps
The MenuProps object is used to create a menu.
type MenuProps = { onClose?: () => void; getInitialFocusElement?: (el: HTMLElement | null) => HTMLElement | undefined | null;};Properties
| Property | Type | Description |
|---|---|---|
| onClose | () => void | undefined | Function that is called when the menu is closed |
| getInitialFocusElement | (el: HTMLElement | null) => HTMLElement | undefined | null | undefined | Function that provides the element that focus should jump to when the menu is opened |