Skip to content
Sections
Fiesta

media-grid

List screen Generic list screen with title, toolbar, rows that work desktop and mobile.

A grid of image tiles. Every frame is 4:3, so tall screenshots and wide banners sit in one even grid.

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

Screenshots, a logo and a banner

Give a logo or a banner rst-media-frame="contain". A screenshot keeps the default and shows its top. A tile with no description says "No description".

Preview

Put this inside <div rst-list>.

<div rst-media>
  <div rst-media-tile>
    <div rst-media-frame>
      <img src="../assets/sample-checkout.svg" alt="" loading="lazy" decoding="async" width="1280" height="3200">
    </div>
    <div rst-media-caption>
      <div rst-media-name>
        <a href="/images/1">Checkout, step 2</a>
        <details rst-row-menu name="rst-menus">
          <summary aria-label="Actions for Checkout, step 2">
            <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>
          </summary>
          <div rst-row-menu-panel>
            <a href="/images/1/edit">Edit</a>
            <hr>
            <a class="rst-danger" href="/images/1/delete">Delete…</a>
          </div>
        </details>
      </div>
      <p rst-media-desc>The payment step, with the card form open.</p>
      <p rst-media-meta>1280 × 3200 · 412 KB</p>
    </div>
  </div>
  <div rst-media-tile>
    <div rst-media-frame>
      <img src="../assets/sample-pricing.svg" alt="" loading="lazy" decoding="async" width="1280" height="2400">
    </div>
    <div rst-media-caption>
      <div rst-media-name>
        <a href="/images/2">Pricing page</a>
        <details rst-row-menu name="rst-menus">
          <summary aria-label="Actions for Pricing page">
            <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>
          </summary>
          <div rst-row-menu-panel>
            <a href="/images/2/edit">Edit</a>
            <hr>
            <a class="rst-danger" href="/images/2/delete">Delete…</a>
          </div>
        </details>
      </div>
      <p rst-media-desc="none">No description</p>
      <p rst-media-meta>1280 × 2400 · 318 KB</p>
    </div>
  </div>
  <div rst-media-tile>
    <div rst-media-frame="contain">
      <img src="../assets/sample-logo.svg" alt="Harbour" loading="lazy" decoding="async" width="240" height="240">
    </div>
    <div rst-media-caption>
      <div rst-media-name>
        <a href="/images/3">Harbour logo</a>
        <details rst-row-menu name="rst-menus">
          <summary aria-label="Actions for Harbour logo">
            <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>
          </summary>
          <div rst-row-menu-panel>
            <a href="/images/3/edit">Edit</a>
            <hr>
            <a class="rst-danger" href="/images/3/delete">Delete…</a>
          </div>
        </details>
      </div>
      <p rst-media-desc>The mark on its own, for dark and light backgrounds.</p>
      <p rst-media-meta>240 × 240 · 3 KB</p>
    </div>
  </div>
  <div rst-media-tile>
    <div rst-media-frame="contain">
      <img src="../assets/sample-banner.svg" alt="" loading="lazy" decoding="async" width="1200" height="200">
    </div>
    <div rst-media-caption>
      <div rst-media-name>
        <a href="/images/4">Spring banner</a>
        <details rst-row-menu name="rst-menus">
          <summary aria-label="Actions for Spring banner">
            <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>
          </summary>
          <div rst-row-menu-panel>
            <a href="/images/4/edit">Edit</a>
            <hr>
            <a class="rst-danger" href="/images/4/delete">Delete…</a>
          </div>
        </details>
      </div>
      <p rst-media-desc>The strip at the top of the shop in March.</p>
      <p rst-media-meta>1200 × 200 · 64 KB</p>
    </div>
  </div>
</div>

In an app this would reach /images/1, /images/1/delete, /images/1/edit, /images/2, /images/2/delete, /images/2/edit, /images/3, /images/3/delete, /images/3/edit, /images/4, /images/4/delete, /images/4/edit. Here its links and forms go nowhere.

Select mode, one tile selected

Wrap the grid and a bulk-bar in one form. Each tile's checkbox posts its value under the name "id"; rename it if your app expects another. Inside the form, menu items must be links.

Preview

Put this inside <div rst-list>.

<div rst-media>
  <div rst-media-tile>
    <div rst-media-frame>
      <img src="../assets/sample-checkout.svg" alt="" loading="lazy" decoding="async" width="1280" height="3200">
      <label rst-selbox>
        <input type="checkbox" name="id" value="1" checked aria-label="Select Checkout, step 2">
      </label>
    </div>
    <div rst-media-caption>
      <div rst-media-name>
        <a href="/images/1">Checkout, step 2</a>
        <details rst-row-menu name="rst-menus">
          <summary aria-label="Actions for Checkout, step 2">
            <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>
          </summary>
          <div rst-row-menu-panel>
            <a href="/images/1/edit">Edit</a>
            <hr>
            <a class="rst-danger" href="/images/1/delete">Delete…</a>
          </div>
        </details>
      </div>
      <p rst-media-desc>The payment step, with the card form open.</p>
      <p rst-media-meta>1280 × 3200 · 412 KB</p>
    </div>
  </div>
  <div rst-media-tile>
    <div rst-media-frame>
      <img src="../assets/sample-pricing.svg" alt="" loading="lazy" decoding="async" width="1280" height="2400">
      <label rst-selbox>
        <input type="checkbox" name="id" value="2" aria-label="Select Pricing page">
      </label>
    </div>
    <div rst-media-caption>
      <div rst-media-name>
        <a href="/images/2">Pricing page</a>
        <details rst-row-menu name="rst-menus">
          <summary aria-label="Actions for Pricing page">
            <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>
          </summary>
          <div rst-row-menu-panel>
            <a href="/images/2/edit">Edit</a>
            <hr>
            <a class="rst-danger" href="/images/2/delete">Delete…</a>
          </div>
        </details>
      </div>
      <p rst-media-desc="none">No description</p>
      <p rst-media-meta>1280 × 2400 · 318 KB</p>
    </div>
  </div>
</div>

In an app this would reach /images/1, /images/1/delete, /images/1/edit, /images/2, /images/2/delete, /images/2/edit. Here its links and forms go nowhere.