Skip to content
Sections
Fiesta

tblock

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 bordered card whose body reveals only while its switch is on, via :has(). The switch is authoritative; the reveal is a display convenience.

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

Preview
<div rst-tblock>
  <label rst-tblock-head>
    <input type="checkbox" name="notify" checked>
    <span rst-switch-track aria-hidden="true"></span>
    <span>
      <span rst-tblock-title>Email notifications</span>
      <span rst-tblock-desc>Sent for every reply to a thread you're in.</span>
    </span>
  </label>
  <div rst-tblock-body>
    <div rst-field>
      <label rst-field-label for="notify-freq">Frequency</label>
      <input rst-input type="text" id="notify-freq" name="notify_freq" value="Daily digest">
    </div>
  </div>
</div>