तय सीमा से ऊपर
पार्शियल में भराव 100% पर सीमित रहता है।
stat
डैशबोर्ड पर एक संख्या, उसके लेबल और उसमें कितना बदलाव हुआ, के साथ।
बड़ी संख्या
इसे <div rst-stats> के अंदर रखें।
<divrst-stat="lead">
<spanrst-stat-label>इस महीने की आय</span>
<spanrst-stat-num>€48,210</span>
<spanrst-stat-deltarst-tone="positive">+12%</span>
<spanrst-stat-note>पिछले महीने की तुलना में</span>
</div>
इसे <div rst-stats> के अंदर रखें।
{{template"stat"dict"Label""इस महीने की आय""Value""€48,210""Delta""+12%""Tone""positive""Note""पिछले महीने की तुलना में""Lead"true}}
पंक्ति के किसी एक आँकड़े में Lead जोड़ें, वह बड़ा हो जाएगा। यह वही कॉम्पोनेंट है, बस बड़ा।
आपको बस एक लेबल और एक संख्या चाहिए। बाकी सब वैकल्पिक है।
जब घटना अच्छा हो
इसे <div rst-stats> के अंदर रखें।
<divrst-stat>
<spanrst-stat-label>पहले जवाब तक का समय</span>
<spanrst-stat-num>1 घं 12 मि</span>
<spanrst-stat-deltarst-tone="positive">−38%</span>
<spanrst-stat-note>पिछले हफ़्ते की तुलना में</span>
</div>
इसे <div rst-stats> के अंदर रखें।
{{template"stat"dict"Label""पहले जवाब तक का समय""Value""1 घं 12 मि""Delta""−38%""Tone""positive""Note""पिछले हफ़्ते की तुलना में"}}
रंग आप तय करते हैं, कॉम्पोनेंट नहीं। यहाँ संख्या घटी है और यह अच्छी खबर है, इसलिए बदलाव हरा है।
जब बढ़ना बुरा हो
इसे <div rst-stats> के अंदर रखें।
<divrst-stat>
<spanrst-stat-label>विफल भुगतान</span>
<spanrst-stat-num>9</span>
<spanrst-stat-deltarst-tone="negative">+3</span>
<spanrst-stat-note>पिछले हफ़्ते की तुलना में</span>
</div>
इसे <div rst-stats> के अंदर रखें।
{{template"stat"dict"Label""विफल भुगतान""Value""9""Delta""+3""Tone""negative""Note""पिछले हफ़्ते की तुलना में"}}
यहाँ संख्या बढ़ी है और यह बुरी खबर है, इसलिए बदलाव लाल है।
जब कहा न जा सके
इसे <div rst-stats> के अंदर रखें।
<divrst-stat>
<spanrst-stat-label>सत्र की औसत अवधि</span>
<spanrst-stat-num>4 मि 12 से</span>
<spanrst-stat-deltarst-tone="neutral">+18 से</span>
<spanrst-stat-note>शुक्रवार से</span>
</div>
इसे <div rst-stats> के अंदर रखें।
{{template"stat"dict"Label""सत्र की औसत अवधि""Value""4 मि 12 से""Delta""+18 से""Note""शुक्रवार से"}}
रंग न दें तो बदलाव धूसर रहेगा। जब कह न सकें कि यह अच्छा है या बुरा, तब ऐसा करें।
छोटा करके लिखी संख्या
इसे <div rst-stats> के अंदर रखें।
<divrst-stat>
<spanrst-stat-label>भेजे गए संदेश</span>
<spanrst-stat-num><datavalue="4120">4.1k</data></span>
</div>
इसे <div rst-stats> के अंदर रखें।
{{template"stat"dict"Label""भेजे गए संदेश""Value""4.1k""Exact""4120"}}
4120 की जगह 4.1k दिखा रहे हैं? पूरी संख्या Exact में रखें। स्क्रीन रीडर वही पढ़ते हैं जो स्क्रीन पर है, इसलिए जो कुछ व्यक्ति को चाहिए वह संख्या में ही रखें।
person
आद्याक्षर अवतार, नाम और ईमेल। लोगों के रिकॉर्ड जल्दी पहचानने के लिए।
<arst-personhref="/people/3">
<spanrst-person-av="empty"aria-hidden="true"></span>
<spanrst-person-meta>
<spanrst-person-name>बिना स्वीकार किया आमंत्रण</span>
<spanrst-person-email>invited@example.com</span>
</span>
</a>
{{template"person"dict"Href""/people/3""Name""बिना स्वीकार किया आमंत्रण""Email""invited@example.com"}}
actor
किसने क्या किया, शब्दों में: किसी व्यक्ति का नाम, या एजेंट और वह व्यक्ति जिसके लिए उसने काम किया। कोई बैज नहीं, कोई आइकन नहीं।
किसी व्यक्ति के लिए काम करता एजेंट
<spanrst-actor>Grace Hopper के लिए Claude</span>
{{template"actor"dict"Actor".Actor}}
किसी subject को नाम में बदलने के लिए बूट पर एक बार ui.ActorName सेट करें। ऐप खुद, यानी शून्य Actor, कुछ भी रेंडर नहीं करता।
एक व्यक्ति
<spanrst-actor>Grace Hopper</span>
{{template"actor"dict"Actor".Actor}}
callout
चेतावनी की इकलौती शब्दावली: रंगी हुई पट्टी, टोन का चिह्न, वैकल्पिक मोटा शीर्षक, और एक अनुच्छेद।
info
<divrst-calloutrst-tone="info">
<spanrst-callout-icaria-hidden="true">
<svgclass="icon"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"aria-hidden="true"><circlecx="12"cy="12"r="10"/><pathd="M12 16v-4"/><pathd="M12 8h.01"/></svg>
</span>
<divrst-callout-body>
<p>साइट प्रकाशित होने तक पोस्ट केवल सदस्यों को दिखती हैं।</p>
</div>
</div>
{{template"callout"dict"Body""साइट प्रकाशित होने तक पोस्ट केवल सदस्यों को दिखती हैं।""Tone""info"}}
positive
<divrst-calloutrst-tone="positive">
<spanrst-callout-icaria-hidden="true">
<svgclass="icon"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"aria-hidden="true"><circlecx="12"cy="12"r="10"/><pathd="m9 12 2 2 4-4"/></svg>
</span>
<divrst-callout-body>
<strong>भुगतान जुड़ गए हैं</strong>
<p>अब आप टिकटों का भुगतान ले सकते हैं।</p>
</div>
</div>
{{template"callout"dict"Body""अब आप टिकटों का भुगतान ले सकते हैं।""Title""भुगतान जुड़ गए हैं""Tone""positive"}}
warning
<divrst-calloutrst-tone="warning">
<spanrst-callout-icaria-hidden="true">
<svgclass="icon"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"aria-hidden="true"><pathd="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><pathd="M12 9v4"/><pathd="M12 17h.01"/></svg>
</span>
<divrst-callout-body>
<strong>बेचना शुरू करने के लिए भुगतान जोड़ें</strong>
<p>आपका कार्यक्रम लाइव है, पर अभी भुगतान नहीं ले सकता।</p>
</div>
</div>
{{template"callout"dict"Body""आपका कार्यक्रम लाइव है, पर अभी भुगतान नहीं ले सकता।""Title""बेचना शुरू करने के लिए भुगतान जोड़ें""Tone""warning"}}
negative
<divrst-calloutrst-tone="negative">
<spanrst-callout-icaria-hidden="true">
<svgclass="icon"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"aria-hidden="true"><circlecx="12"cy="12"r="10"/><pathd="m15 9-6 6"/><pathd="m9 9 6 6"/></svg>
</span>
<divrst-callout-body>
<strong>पिछला आयात विफल रहा</strong>
<p>कुछ नहीं बदला गया। पंक्ति 91 ठीक करें और फिर कोशिश करें।</p>
</div>
</div>
{{template"callout"dict"Body""कुछ नहीं बदला गया। पंक्ति 91 ठीक करें और फिर कोशिश करें।""Title""पिछला आयात विफल रहा""Tone""negative"}}
negative, चेतावनी के रूप में घोषित
<divrst-calloutrst-tone="negative"role="alert">
<spanrst-callout-icaria-hidden="true">
<svgclass="icon"viewBox="0 0 24 24"fill="none"stroke="currentColor"stroke-width="2"stroke-linecap="round"stroke-linejoin="round"aria-hidden="true"><circlecx="12"cy="12"r="10"/><pathd="m15 9-6 6"/><pathd="m9 9 6 6"/></svg>
</span>
<divrst-callout-body>
<strong>आयात रुक गया</strong>
<p>कुछ नहीं बदला गया। पंक्ति 91 ठीक करें और फिर कोशिश करें।</p>
</div>
</div>
{{template"callout"dict"Body""कुछ नहीं बदला गया। पंक्ति 91 ठीक करें और फिर कोशिश करें।""Title""आयात रुक गया""Tone""negative""Alert"true}}
alert, role="alert" जोड़ता है ताकि ज़रूरी संदेश दिखाए जा सकें।
detail-list
विवरण स्क्रीन पर किसी रिकॉर्ड की डेफ़िनिशन लिस्ट। मोनो चिह्न मशीन जैसे मानों के लिए।
फ़ॉर्म की त्रुटि सारांश पंक्ति, role="alert"। यह सादा स्ट्रिंग लेती है; त्रुटि न हो तो कुछ नहीं दिखाती।
अस्वीकृत सबमिशन
<prst-form-errorrole="alert">यह शीर्षक पहले से लिया जा चुका है।</p>
{{template"form-error""यह शीर्षक पहले से लिया जा चुका है।"}}
job-status
पृष्ठभूमि के काम का पोल किया जाने वाला हिस्सा। data-poll विशेषता तभी निकलती है जब काम चल रहा हो: उसे न देना ही पोलिंग रोकने का तरीका है।
चल रहा है
<divrst-jobdata-poll="/jobs/1/fragment"data-poll-every="2">
<spanrst-spinaria-hidden="true"></span> <bdi><strong>आयात</strong></bdi> चल रहा है: <bdi>400 में से 128</bdi>…
<progressrst-job-barvalue="32"min="0"max="100"aria-hidden="true"></progress>
</div>
{{template"job-status"dict"Name""आयात""Percent" 32
"PollSeconds" 2
"PollURL""/jobs/1/fragment""Progress""400 में से 128""Status""running"}}
यह वाला पोल करता है: यह पृष्ठ का इकलौता नमूना है जो नेटवर्क से कुछ माँगता है, और स्थिर साइट पर उसका उत्तर कभी नहीं आता।
पूरा हुआ
<divrst-job>
<bdi><strong>आयात</strong></bdi> पूरा हुआ।
</div>