Skip to content

Data Grid

Search, sort, select and edit products in a server-rendered collection.

View template

Studio inventory

Product catalog

Studio products
ProductStatusActions
No matching products

Change the search or status filter.

0 of 6 products

Use GET to return a filtered grid. Save, delete and bulk actions POST to the host and return the same section. Validation returns 422 with the draft. Selection applies to visible rows. Supply the displayed revision to handle changes in another workspace.

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 ↓