field-text
النموذج الحقول التي يكتب فيها الشخص، في الحالات التي يضعها فيها نموذج حقيقي. كل واحد منها داخل rst-box بحشوة، لأن هذه هي البطاقة التي يوضع فيها النموذج.
حقل نص واحد بتسمية. نجمة علامة الإلزام aria-hidden؛ أما الإشارة البرمجية فهي السمة required على الحقل.
كل مثال يعمل فعلًا، لكن روابطه لا تؤدي إلى أي مكان. يعرض HTML الترميز الجاهز للنسخ.
مجرّد
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="ft_bare" >العنوان</label >
<input rst-input id ="ft_bare" name ="ft_bare" type ="text" >
</div >
مع تلميح
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="ft_hint" >العنوان الرئيسي</label >
<input rst-input id ="ft_hint" name ="ft_hint" type ="text" aria-describedby ="ft_hint-hint" >
<small rst-field-hint id ="ft_hint-hint" >يظهر في القائمة.</small >
</div >
مطلوب
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="ft_required" >الاسم المعروض <span rst-field-required aria-hidden ="true" >*</span ></label >
<input rst-input id ="ft_required" name ="ft_required" type ="text" autocomplete ="nickname" required >
</div >
مع خطأ
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="ft_error" >العنوان</label >
<input rst-input id ="ft_error" name ="ft_error" type ="text" value ="ملاحظات الإصدار" aria-invalid ="true" aria-describedby ="ft_error-error" >
<small rst-field-error id ="ft_error-error" >يوجد منشور بهذا العنوان بالفعل.</small >
</div >
الحقل الرئيسي
أعطِ الحقل الرئيسي في النموذج، كعنوان أو اسم، rst-input="primary" ليصبح حقل الإدخال أبرز.
ضع هذا داخل <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="ft_primary" >ما هو؟</label >
<input rst-input ="primary" id ="ft_primary" name ="ft_primary" type ="text" value ="اجتماع مجلس الإدارة الفصلي" >
</div >