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. أما هنا فروابطه ونماذجه لا تذهب إلى أي مكان.