Velocity X Components

Standard Navigation

Command Palette Launcher

A ⌘K search trigger that opens a fuzzy-filterable command list for jumping anywhere or running any action without leaving the keyboard. Hand-rolled matching, no dependency, with full focus trapping and keyboard selection out of the box.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-command-palette

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Command Palette Launcher →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Command Palette Launcher

Props

NameTypeRequiredDefaultDescription
commands{ id: string, label: string, hint?: string, group?: string, icon?: ReactNode, onRun: () => void }[]No[]
placeholderstringNo'Type a command or search…'
triggerLabelstringNo'Search'
emptyLabelstringNo'No matching commands'
classNamestringNo''applied to the trigger button

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-command-palette/CommandPaletteLauncher.jsx

Using the Command Palette Launcher component

Install it with velocityx add standard-command-palette. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Navigation.