Resizable
The divider learns where you usually release it and snaps to that width. Recent drags count more.
Lighting
Pendant lights
Table lamps
Wall lights
Arc Task Lamp
Drag the divider and release it near the same width three times. On the next pass, feel where it catches.
HTML
<div class="rlw-split" data-rlw-split data-rlw-snap data-rlw-snap-key="catalog-collection">
<section id="lighting-collection"><small>Collection</small><h2>Lighting</h2><p>Pendant lights<br>Table lamps<br>Wall lights</p></section>
<div class="rlw-split-handle" role="separator" aria-label="Resize collection and details" aria-controls="lighting-collection" aria-orientation="vertical" aria-valuemin="20" aria-valuemax="80" aria-valuenow="40" tabindex="0"></div>
<section><small>Selected item</small><h2>Arc Task Lamp</h2><p>Drag the divider and release it near the same width three times. On the next pass, feel where it catches.</p></section>
</div>For a precise width, hold the divider still when it snaps, then keep dragging. Arrow keys move one pixel at a time. Hold Shift for ten pixels. Add data-rlw-snap to enable snapping. Give each divider its own data-rlw-snap-key to remember its width and recent stops across reloads and HTMX swaps in this tab.
Try the divider in Mail →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-workspace.css">
<script defer src="/mero.js"></script>
<script defer src="/mero-workspace.js"></script>