Menu
The Menu item list is a component that allows you to display related content grouped together and organized vertically. It can be used in various UI components such as dropdown, drawer, split button and more.
There are two ways to use this component: using children or using items prop
Using Children
You can use children to add menu items and submenu items components inside a menu item list component. This gives you greater control over the layout and content of the menu item list.
Single level menu
<QtmMenuItemList>
<QtmMenuItem id="menu1">
<QtmMenuItemLabel>
<QtmIcon icon="account_circle"></QtmIcon>
<QtmTypography>Menu Item</QtmTypography>
</QtmMenuItemLabel>
</QtmMenuItem>
<QtmMenuItem id="menu2">
<QtmMenuItemLabel>
<QtmIcon icon="account_circle"></QtmIcon>
<QtmTypography>Menu Item</QtmTypography>
</QtmMenuItemLabel>
</QtmMenuItem>
<QtmMenuItem id="menu3">
<QtmMenuItemLabel>
<QtmIcon icon="account_circle"></QtmIcon>
<QtmTypography>Menu Item</QtmTypography>
</QtmMenuItemLabel>
</QtmMenuItem>
</QtmMenuItemList>