list-bar
一覧画面 一般的な一覧画面。タイトル、ツールバー、行があり、デスクトップでもモバイルでも動きます。
一覧カードの上部にあるツールバー。検索と絞り込みが入ります。
どの例も実際に動きますが、リンクはどこにも移動しません。 HTML にはコピーできるマークアップがあります。
検索と絞り込みのドロップダウン
これは <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 ="投稿を検索" aria-label ="投稿を検索" >
<a rst-search-clear href ="/posts?sort=newest" aria-label ="検索をクリア" >
<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" >検索</button >
</form >
</search >
<details rst-dropdown name ="rst-menus" >
<summary rst-btn aria-label ="ステータスで絞り込み: 支払い済み" >
支払い済み
<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" >すべて</a >
<a href ="/posts?status=paid" aria-current ="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 ="M20 6 9 17l-5-5" /></svg ></a >
<a href ="/posts?status=free" >無料</a >
</div >
</details >
</div >
アプリの中なら、これは /posts, /posts?sort=newest, /posts?status=free, /posts?status=paid に届きます。ここではリンクもフォームもどこにも行きません。