Command — Astro

Command palette (e.g. Cmd+K): searchable list of actions with keyboard navigation.

Command

Command palette: trigger opens a dialog with search and list of actions. Use K (or Ctrl+K) to open. Interactivity is provided by an inline script.

Add this component

Run the command below in your project directory. When prompted, select the component(s) you want. The CLI will copy the CSS and component files.

Choose your package manager — click a tab to select, then copy the command.

npm pnpm yarn bun

Live Example

Command palette

Usage

Usage

Full example for each framework (Astro, Vanilla, Svelte, Vue, React). Switch framework via View as or by clicking a Usage tab—both stay in sync.

Astro Vanilla Svelte Vue React

Other frameworks: Vanilla · Svelte · Vue · React