Web Overlays & Search TypeScript Browser E2E & Sandbox Verified

Accessible Command Palette

Keyboard-driven quick command launcher with live fuzzy filtering, arrow-key navigation, Enter selection, and TypeScript/JavaScript source.

ID: web/command-palette Version: 1.0.0 License: MIT Framework: Vanilla Web

Sandboxed Live Preview

Isolated iframe (CSP + no same-origin)

Interactive live preview — type to filter commands, use Up/Down arrows and Enter.

Source Code (4 files)

palette.html · html
<div class="pal-stage">
  <div class="pal-card" role="search">
    <input id="palInput" class="pal-input" type="search" placeholder="Type a command (e.g. pack, workflow, verify)..." aria-label="Filter commands" autocomplete="off">
    <ul id="palList" class="pal-list" role="listbox" aria-label="Available commands"></ul>
    <div id="palStatus" class="pal-status" aria-live="polite">Use ↑/↓ arrows and Enter to run a command.</div>
  </div>
</div>

Installation & Usage

Copy palette.html, palette.css, and palette.ts (or compiled palette.js) into your web app.

Mount the palette panel inside a <dialog> or overlay container and supply your application commands array.