Skip to content

Resizable

The divider learns where you usually release it and snaps to that width. Recent drags count more.

View template
Collection

Lighting

Pendant lights
Table lamps
Wall lights

Selected item

Arc Task Lamp

Drag the divider and release it near the same width three times. On the next pass, feel where it catches.

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>
Download library and examples ↓