<Menu />

The Menu component is a building block for application menus.

Properties  

shouldFocus?: 'first' | 'last' | null
focusLast?: boolean
deprecated
Use shouldFocus='last' instead.
When true, the last element will be focused on mount.
onClickOutside?: () => void
onEscape?: () => void
onItemClick?: () => void
gap?: number | number[]
space?: number | number[]
deprecated
Use gap instead. Will be removed in v4.

Basic example  

Hover the menu to see the focused item changing.

Example with custom menu items  

The MenuItem component takes a children property for rendering custom menu item .
Made withby folks at