Command palette · ⌘K

Or press ⌘ K / Ctrl K anywhere · ↑↓ to navigate · ↵ to run.

Usage

JavaScript
import { signal } from "./index.js";import { CommandPalette } from "./components/command.js"; const open = signal(false);   // also opens on ⌘K / Ctrl K automatically const commands = [  { label: "Toggle light / dark", icon: "🌓", keywords: "dark light", onRun: toggleMode },  { label: "Say hello",    icon: "👋", keywords: "toast greet", onRun: () => toast("Hi") },]; // mount once; ↑↓ to navigate, ↵ to run, type to fuzzy-filter on label+keywords.CommandPalette({ open, commands })