Command

Recent Commands

A palette that answers an empty query with recent commands instead of the whole alphabetical list: people mostly repeat their last action.

What you can change

  • the commands and recent arrays
  • the field hint through the placeholder prop
  • the history depth and the clear button wording through clearLabel

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/command-003?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-command-003-* variables. Client-side: "use client" for the sake of useState on the query and the history. An empty query switches the list to the history, any input switches it to a filter over the full set of commands; the heading above the list changes with the mode. Running a command lifts it to the top of the history and trims the list to four entries, so the history does not grow. The combobox, listbox and option roles are set explicitly, and the highlight is passed through aria-activedescendant.

Tags

  • command
  • palette
  • recent
  • history
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…