MenuProps
note
This type is deducted from Spotify's internal usage. It may not be accurate and may change in the future.
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 |