सामग्री पर जाएँ
अनुभाग
Fiesta

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>