Command
Search destinations and actions, then use the arrows and Enter to execute.
HTML
<section class="rlw-command" data-rlw-command>
<button class="rlw-launch" type="button" data-rlw-open><span>Search commands</span><kbd>⌘ / Ctrl K</kbd></button>
<dialog class="rl-dialog rlw-command-dialog" aria-label="Workspace commands">
<div class="rlw-command-head"><input type="search" data-command-search placeholder="Search pages and actions…" aria-label="Search commands" autofocus><button type="button" data-rl-close aria-label="Close commands"><svg class="rlw-icon" aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m6 6 12 12M18 6 6 18"/></svg></button></div>
<div class="rlw-command-items">
<a href="/layouts/dashboard?view=inventory"><strong>Open inventory</strong><small>Workspace</small></a>
<a href="/layouts/dashboard?view=settings"><strong>Workspace settings</strong><small>Workspace</small></a>
<button type="button" data-command-copy><strong>Copy page link</strong><small>Action</small></button>
</div>
<p class="rlw-command-empty" hidden>No matching commands</p>
</dialog>
<output class="rlw-status" role="status"></output>
</section>Click the trigger or press Cmd/Ctrl K. Escape returns focus to where you were working.
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>