Đi tới nội dung
Mục
Fiesta

form-layout

Nguyên thể giao diện Những hình thù mà một thành phần không thể là, vì chúng bọc lấy một phần thân chỉ bên gọi mới biết: thẻ, lưới dữ liệu, menu, và khung riêng của các lớp vỏ.

Các thuộc tính cho biểu mẫu nhịp điệu và thanh lưu của nó. Chúng bao quanh một loạt trường do chính bạn sắp xếp.

Mỗi ví dụ đều hoạt động thật, nhưng các liên kết trong đó không dẫn đến đâu. HTML hiển thị mã đánh dấu để sao chép.

Xem trước
<form rst-form-flow method="post" action="/settings">
  <div rst-field>
    <label rst-field-label for="name">Tên</label>
    <input rst-input type="text" id="name" name="name">
  </div>
  <div rst-field>
    <label rst-field-label for="email">Email</label>
    <input rst-input type="email" id="email" name="email">
  </div>
  <div rst-field-row>
    <div class="rst-grow" rst-field>
      <label rst-field-label for="city">Thành phố</label>
      <input rst-input type="text" id="city" name="city">
    </div>
    <div rst-field>
      <label rst-field-label for="zip">Mã bưu điện</label>
      <input rst-input="short" type="text" id="zip" name="zip">
    </div>
  </div>
  <div rst-form-bar>
    <span rst-form-bar-note>Thay đổi được lưu ngay.</span>
    <div rst-form-actions>
      <a rst-btn href="/settings">Huỷ</a>
      <button rst-btn="primary" type="submit">Lưu</button>
    </div>
  </div>
</form>

Trong một ứng dụng, phần này sẽ đi tới /settings. Ở đây các liên kết và biểu mẫu của nó không dẫn đến đâu.