Skip to content
Sections
Fiesta

stack

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.

A column that spaces its blocks by what each one is: close under a heading, wider before a section, and always clear above the buttons. Nothing inside it brings a margin of its own.

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

A page of sections

Preview
<div rst-stack>
  <header rst-page-header>
    <div rst-page-header-titles>
      <h1>Settings</h1>
      <p rst-page-header-sub>The workspace's name, and the language it opens in.</p>
    </div>
  </header>
  <section rst-stack rst-section aria-labelledby="stack-profile">
    <h2 id="stack-profile">Profile</h2>
    <p>Update the name and photo shown across the account.</p>
    <label rst-field-label for="stack-name">Display name</label>
    <input rst-input type="text" id="stack-name" name="name" aria-describedby="stack-name-help">
    <p rst-field-help id="stack-name-help">Shown on your profile.</p>
    <div rst-actions>
      <button rst-btn="primary" type="submit">Save</button>
      <a rst-btn href="/settings">Cancel</a>
    </div>
  </section>
  <section rst-stack rst-section aria-labelledby="stack-notifications">
    <h2 id="stack-notifications">Notifications</h2>
    <p>Sent for every reply to a thread you're in.</p>
    <h3>Email notifications</h3>
    <label rst-field-label for="stack-email">Email</label>
    <input rst-input type="email" id="stack-email" name="email" aria-describedby="stack-email-help">
    <p rst-field-help id="stack-email-help">We only use this to send you replies.</p>
    <p>Changes save immediately.</p>
    <button rst-btn type="submit">Save</button>
  </section>
</div>

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