Menu
A vertical list of links or actions. Plain by default; add glass, or make it a popover for a dropdown.
| Name | Type | What it does |
|---|---|---|
menu | component | On a <ul> whose items hold an <a> or <button> |
menu-title | part | A heading row |
aria-current | state | On the link for the current page |
Menu on glass
<ul class="menu glass" style="width: 16rem">
<li class="menu-title meta"><span>Library</span></li>
<li><a href="#" aria-current="page"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="m3 16 5-5 4 4 3-3 6 6"/></svg> Photos <span class="meta">2,418</span></a></li>
<li><a href="#"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.800 7 11 7 11z"/><circle cx="12" cy="10" r="2.500"/></svg> Places <span class="meta">36</span></a></li>
<li><a href="#"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="5" width="16" height="14" rx="2"/><path d="M8 10h8M8 14h8"/></svg> Stories <span class="meta">112</span></a></li>
</ul>