Agenda
Browse daily bookings and add a timed event.
Studio agenda
- Material reviewAtelier 01
- Lighting testPhoto studio
Add booking
HTML
<div class="rl-agenda-mount" hx-get="/demo/collections/agenda" hx-trigger="load" hx-swap="innerHTML"><section class="rl-agenda" data-rl-agenda hx-target="closest [data-rl-agenda]" hx-swap="outerHTML" hx-sync="closest [data-rl-agenda]:drop">
<header class="rl-collection-head"><div><h2>Studio agenda</h2><p><time datetime="2026-11-20">Friday, Nov 20</time></p></div><div class="rl-collection-actions"><button type="button" class="rl-button rl-button-outline rl-button-sm" data-agenda-action="previous" aria-label="Previous day" hx-get="/demo/collections/agenda?date=2026-11-19&returnFocus=previous"><span aria-hidden="true"></span></button><button type="button" class="rl-button rl-button-outline rl-button-sm" data-agenda-action="next" aria-label="Next day" hx-get="/demo/collections/agenda?date=2026-11-21&returnFocus=next"><span aria-hidden="true"></span></button></div></header>
<ol class="rl-agenda-list"><li><time datetime="2026-11-20T09:30">09:30</time><div><strong>Material review</strong><small>Atelier 01</small></div></li><li><time datetime="2026-11-20T13:00">13:00</time><div><strong>Lighting test</strong><small>Photo studio</small></div></li></ol>
<p role="status" class="rl-collection-message"></p>
<details class="rl-collection-details"><summary data-agenda-action="booking">Add booking</summary>
<form class="rl-collection-fields" hx-post="/demo/collections/agenda"><input type="hidden" name="date" value="2026-11-20">
<label class="rl-collection-field"><span>Booking title</span><input class="rl-input" name="title" value="" required maxlength="80"></label>
<label class="rl-collection-field"><span>Location</span><input class="rl-input" name="location" value="" required maxlength="80"></label>
<label class="rl-collection-field"><span>Start time</span><input class="rl-input" name="time" value="10:00" required type="time"></label>
<button class="rl-button rl-button-primary rl-button-sm" type="submit">Add booking</button>
</form></details><p class="rl-collection-error" role="alert" data-agenda-error hidden></p>
</section></div>HTTP exchange
Use the preview to see the request and the HTML your server returns.Return a dated agenda fragment on navigation and after saving a booking. Demo bookings live in memory.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-collections.css">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.js"></script>
<script defer src="/mero-collections.js"></script>Point the HTMX attributes at your own HTML endpoints. Use the live preview’s HTTP exchange to inspect the request and response.
Download library and examples ↓