dropdown
List screen Generic list screen with title, toolbar, rows that work desktop and mobile.
A zero-JavaScript disclosure: a summary button over a panel of plain links. Put it in a row beside what it acts on, never on a line of its own.
Each example is live, but its links go nowhere. HTML shows the markup to copy.
A filter menu with one choice applied
<div rst-box-head >
<h2 >Posts</h2 >
<details rst-dropdown name ="rst-menus" >
<summary rst-btn aria-label ="Sort posts: newest first" >
Newest
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="m6 9 6 6 6-6" /></svg >
</summary >
<div rst-dropdown-menu >
<a href ="/posts?sort=newest" aria-current ="true" >Newest <svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="M20 6 9 17l-5-5" /></svg ></a >
<a href ="/posts?sort=oldest" >Oldest</a >
<a href ="/posts?sort=title" >By title</a >
</div >
</details >
</div >
In an app this would reach /posts?sort=newest, /posts?sort=oldest, /posts?sort=title. Here its links and forms go nowhere.
The details/summary menu behind header overflow menus and a list bar's filter, plus an applied filter as a removable chip.
<div rst-list >
<div rst-lbar >
<details rst-dropdown name ="rst-menus" >
<summary >
Filter
<span rst-caret aria-hidden ="true" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><path d ="m6 9 6 6 6-6" /></svg >
</span >
<span class ="rst-sr-only" >Filter orders: Paid</span >
</summary >
<div rst-dropdown-menu >
<a aria-current ="true" href ="/orders?status=paid" >Paid</a >
<details rst-menu-group name ="rst-menus-price" open >
<summary >Price</summary >
<div >
<a href ="/orders?price=free" >Free</a >
</div >
</details >
</div >
</details >
<span rst-ftok >
<span rst-ftok-k >Paid</span >
<a href ="/orders" aria-label ="Remove filter Paid" >✕</a >
</span >
</div >
</div >
In an app this would reach /orders, /orders?price=free, /orders?status=paid. Here its links and forms go nowhere.