Skip to content
Sections
Fiesta

form-layout

UI primitives The shapes a component cannot be, because they wrap a body only the caller knows: cards, data grids, menus and the shells' own chrome.

The attributes that give a form its rhythm and its save bar. They wrap a run of fields you compose yourself.

Each example is live, but its links go nowhere. HTML shows the markup to copy.

Preview
<form rst-form-flow method="post" action="/settings">
  <div rst-field>
    <label rst-field-label for="name">Name</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">City</label>
      <input rst-input type="text" id="city" name="city">
    </div>
    <div rst-field>
      <label rst-field-label for="zip">ZIP</label>
      <input rst-input="short" type="text" id="zip" name="zip">
    </div>
  </div>
  <div rst-form-bar>
    <span rst-form-bar-note>Changes save immediately.</span>
    <div rst-form-actions>
      <a rst-btn href="/settings">Cancel</a>
      <button rst-btn="primary" type="submit">Save</button>
    </div>
  </div>
</form>

In an app this would reach /settings. Here its links and forms go nowhere.