field-textarea
表單 人會打字入去嘅欄位,處於真正表格會令佢哋出現嘅狀態。每個都放喺一個有留白嘅 rst-box 入面,因為表格就係放喺呢種卡片入面。
field-text 個外殼,包住一個 textarea。
每個例子都真係用得,不過入面啲連結唔會帶你去邊度。 HTML 顯示可以複製嘅標記。
最簡單
將呢段放入 <section rst-box><form rst-form> 入面。
<div rst-field >
<label rst-field-label for ="ta_bare" >備註</label >
<textarea rst-textarea id ="ta_bare" name ="ta_bare" rows ="3" ></textarea >
</div >
帶一句提示
將呢段放入 <section rst-box><form rst-form> 入面。
<div rst-field >
<label rst-field-label for ="ta_hint" >個人簡介</label >
<textarea rst-textarea id ="ta_hint" name ="ta_hint" rows ="3" aria-describedby ="ta_hint-hint" ></textarea >
<small rst-field-hint id ="ta_hint-hint" >會喺你嘅個人檔案度顯示。</small >
</div >
帶一個錯誤
將呢段放入 <section rst-box><form rst-form> 入面。
<div rst-field >
<label rst-field-label for ="ta_error" >摘要</label >
<textarea rst-textarea id ="ta_error" name ="ta_error" rows ="3" aria-invalid ="true" aria-describedby ="ta_error-error" >…</textarea >
<small rst-field-error id ="ta_error-error" >摘要最少要有二十個字。</small >
</div >
必填
將呢段放入 <section rst-box><form rst-form> 入面。
<div rst-field >
<label rst-field-label for ="ta_required" >退款原因 <span rst-field-required aria-hidden ="true" >*</span ></label >
<textarea rst-textarea id ="ta_required" name ="ta_required" rows ="3" required ></textarea >
</div >