The
Menu component is a building block for application menus.shouldFocus?: 'first' | 'last' | nullfocusLast?: booleandeprecated
Use shouldFocus='last' instead.
When
true, the last element will be focused on mount.onClickOutside?: () => voidonEscape?: () => voidonItemClick?: () => voidgap?: number | number[]space?: number | number[]deprecated
Use gap instead. Will be removed in v4.
Hover the menu to see the focused item changing.
The
MenuItem component takes a children property for rendering custom menu item .