MenuItemPropsinterface
{
readonly children: ReactNode | [ReactNode, ...ReactNode[]];
}| Property | Type | |
|---|---|---|
.children | ReactNode[ReactNode, ...ReactNode[]] | The first child becomes the link label (rendered inside the <a>).- Any additional children form the submenu — only rendered when this item is "proud" (an ancestor of the current page). The caller is responsible for wrapping the submenu in a nested <Menu> if it wants the CSS .menu .menu descendant rules to apply. required readonly |
Props for <MenuItem> — <Clickable> props plus children whose first node is the label and the rest the submenu.