list-bar
Pantalla de lista Pantalla de lista genérica con título, barra de herramientas y filas que funcionan en escritorio y en móvil.
La barra de herramientas en la parte superior de una tarjeta de lista, con búsqueda y filtro.
Cada ejemplo funciona de verdad, pero sus enlaces no llevan a ninguna parte. HTML muestra el marcado para copiar.
Búsqueda con un desplegable de filtro
Pon esto dentro de <div rst-list>.
<div rst-lbar >
<search >
<form rst-search method ="get" action ="/posts" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="11" cy ="11" r ="8" /><path d ="m21 21-4.3-4.3" /></svg >
<input type ="search" name ="q" value ="release" placeholder ="Buscar entradas" aria-label ="Buscar entradas" >
<a rst-search-clear href ="/posts?sort=newest" aria-label ="Borrar la búsqueda" >
<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 ="M18 6 6 18" /><path d ="m6 6 12 12" /></svg >
</a >
<input type ="hidden" name ="sort" value ="newest" >
<button class ="rst-sr-only" type ="submit" >Buscar</button >
</form >
</search >
<details rst-dropdown name ="rst-menus" >
<summary rst-btn aria-label ="Filtrar por estado: Pagado" >
Pagado
<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" >Todo</a >
<a href ="/posts?status=paid" aria-current ="true" >Pagado <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?status=free" >Gratis</a >
</div >
</details >
</div >
En una aplicación, esto llegaría a /posts, /posts?sort=newest, /posts?status=free, /posts?status=paid. Aquí sus enlaces y formularios no llevan a ninguna parte.