list-bar-search
सूची स्क्रीन सामान्य सूची स्क्रीन: शीर्षक, टूलबार और पंक्तियाँ, जो डेस्कटॉप और मोबाइल दोनों पर काम करती हैं।
सिर्फ़ खोज वाली सूचियों के लिए अकेला खोज फ़ॉर्म। एक सामान्य method="get" फ़ॉर्म।
हर उदाहरण असली है, पर उसके लिंक कहीं नहीं ले जाते। HTML कॉपी करने के लिए मार्कअप दिखाता है।
एक क्वेरी के साथ
✕ उसी स्क्रीन का लिंक है, जिसमें खोज हटा दी गई है। स्थिति वाला फ़िल्टर एक छिपे इनपुट में चलता है और बना रहता है।
इसे <div rst-list> के अंदर रखें।
<search >
<form rst-search method ="get" action ="/comments" >
<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 ="spam" placeholder ="टिप्पणियाँ खोजें" aria-label ="टिप्पणियाँ खोजें" >
<a rst-search-clear href ="/comments?status=held" 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 ="status" value ="held" >
<button class ="rst-sr-only" type ="submit" >खोजें</button >
</form >
</search >
किसी ऐप में यह /comments, /comments?status=held तक पहुँचता। यहाँ इसके लिंक और फ़ॉर्म कहीं नहीं जाते।
एक क्वेरी के साथ, पृष्ठ 4 पर
पेज संख्या एक छिपे इनपुट में चलती है, इसलिए नई खोज page=4 को ऐसे नतीजों में ले जाएगी जिनमें अब चार पेज नहीं हैं। ✕ लिंक इसे हटा देता है: उसे सूची के पहले पेज पर भेजें।
इसे <div rst-list> के अंदर रखें।
<search >
<form rst-search method ="get" action ="/comments" >
<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 ="spam" placeholder ="टिप्पणियाँ खोजें" aria-label ="टिप्पणियाँ खोजें" >
<a rst-search-clear href ="/comments" 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 ="page" value ="4" >
<button class ="rst-sr-only" type ="submit" >खोजें</button >
</form >
</search >
किसी ऐप में यह /comments तक पहुँचता। यहाँ इसके लिंक और फ़ॉर्म कहीं नहीं जाते।
ख़ाली, सुगम्य नाम कैटलॉग से
कोई placeholder नहीं। इनपुट का सुलभ नाम उसका aria-label है, जिसे ऐप पेज की भाषा में लिखता है।
इसे <div rst-list> के अंदर रखें।
<search >
<form rst-search method ="get" action ="/comments" >
<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" aria-label ="खोजें" >
<button class ="rst-sr-only" type ="submit" >खोजें</button >
</form >
</search >
किसी ऐप में यह /comments तक पहुँचता। यहाँ इसके लिंक और फ़ॉर्म कहीं नहीं जाते।