Anotomy

Structure of the menu and how its internal parts are composed. These are the menu's semantic parts, so they are also what the classNames and styles objects accept. The keys for entries inside a submenu go in a nested subMenu object.

Horizontal

With mode="horizontal", group headings and the list key have no effect.
Menu anotomy in horizontal mode
NameDescription
1rootThe whole menu. mode makes it a horizontal bar, a vertical list with flyouts, or an inline tree.
2itemOne entry, from items. The ones in selectedKeys carry the selected style.
3itemIconThe node from the item's icon, before the label.
4itemContentThe item's label, from its label.
5popupThe flyout a submenu opens. It renders in a portal, so this key is how you reach it.
6subMenu.itemTitleThe row of an item with children, the one that opens its submenu.
7subMenu.listThe list of entries inside a submenu.
8subMenu.itemOne entry inside a submenu.
9subMenu.itemIconA submenu entry's icon.
10subMenu.itemContentA submenu entry's label.

Vertical

Menu anotomy in vertical mode
NameDescription
1rootThe whole menu.
2itemOne entry, from items.
3itemIconThe node from the item's icon.
4itemContentThe item's label.
5itemTitleThe heading of an item with type: "group".
6listThe list element that holds the top-level entries.
7popupThe flyout beside the submenu's row.
8subMenu.itemTitleThe row that opens the submenu.
9subMenu.listThe list of entries inside the flyout.
10subMenu.itemOne entry inside the submenu.
11subMenu.itemIconA submenu entry's icon.
12subMenu.itemContentA submenu entry's label.

Inline

With mode="inline", a submenu opens in place, so there is no popup.
Menu anotomy in inline mode
NameDescription
1rootThe whole menu.
2itemOne entry, from items.
3itemIconThe node from the item's icon.
4itemContentThe item's label.
5itemTitleThe heading of an item with type: "group".
6listThe list element that holds the top-level entries.
7subMenu.itemTitleThe row that opens the submenu. Its arrow turns when the submenu opens.
8subMenu.listThe indented list under the row, on a tinted background.
9subMenu.itemOne entry inside the submenu.
10subMenu.itemIconA submenu entry's icon.
11subMenu.itemContentA submenu entry's label.