Skip to content

Command Menu

Press Cmd or Ctrl K to search pages and actions returned by your server.

View template

The input requests matching options from your server as you type. Arrow keys move through results, Enter opens a link or runs an action, and Escape closes the list and then the dialog, returning focus to where you were. Link the trigger to a search page for visitors without JavaScript. Use either this or the workspace Command on a page, not both.

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">
<script defer src="/vendor/htmx.min.js"></script>
<script defer src="/mero.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 ↓