Welcome Getting started Layout styles github-circle-black-transparent Source
Components
Badges
App bars
Bottom app bars Top app bars
Buttons
Common buttons FAB Icon buttons Segmented buttons
Cards Carousel Checkboxes Chips Date pickers Dialogs Forms Icons Lists Menus Navigation Progress indicators Pull to refresh Radios Search Selects
Sheets
Bottom sheets Side sheets
Sliders Snackbars Switches Tabs Text fields Time pickers Tooltips Utilities
home apps Buttons palette Two
Materially
github-circle-black-transparent

Menus

Menus display a list of choices on a temporary surface
Material Design Guidelines: Select

Basic menu

Menus can be connected top controls by adding a selector or nesting them inside.
Show content_copy copy content_paste paste plain plain Show overlay content_copy copy content_paste paste plain plain
<mc-button id=controlid>Control</mc-button>
<mc-menu anchor=controlid>
  <mc-menu-item>
    <mc-icon slot=start>content_copy</mc-icon>
    copy
  </mc-menu-item>
  <mc-menu-item>plain</mc-menu-item>
</mc-menu>



<mc-button id=overlayid>Control</mc-button>
<mc-menu anchor=overlayid overlay>
  <mc-menu-item>
    <mc-icon slot=start>content_copy</mc-icon>
    copy
  </mc-menu-item>
  <mc-menu-item>plain</mc-menu-item>
</mc-menu>
            

Nested menu

Show content_copy copy content_paste paste Nested item content_copy copy content_paste paste plain plain
<mc-button class=filled id=nested>Show</mc-button>
<mc-menu anchor=nested>
  <mc-menu-item id=nested-item>Nested item</mc-menu-item>

  <mc-menu anchor=nested-item>
    <mc-menu-item>plain</mc-menu-item>
  </mc-menu>
</mc-menu>
            

Context menu (right click)

Right click me
content_copy copy content_paste paste plain plain


<div context-menu=cm1>Right click me</div>
<mc-menu context-menu=cm1>
  <mc-menu-item>plain</mc-menu-item>
</mc-menu>
            

Style

CSS variables that allow you override default values
/* Optional variables for overriding */

--mc-menu-container-color: var(--mc-surface-container);
--mc-menu-shape: var(--mc-shape-extra-small);
--mc-menu-item-text-color-local: var(--mc-on-surface);
            
menu home apps Get started