Slash MenuPRO
Type “/” to open a filtered command menu with keyboard navigation.
Code
1 file · 118 lines of TypeScriptPRO
Slash Menu is part of Pro
Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.
Motion notes
- The menu grows upward from the input on the micro spring, so it feels attached.
- The highlight slides between items with a shared layout animation as you arrow through.
- Follows the combobox pattern: arrows move, Enter or Tab picks, Escape closes.
Usage
Example
<SlashMenu commands={commands} onSelect={run} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| commands | { name, description, icon? }[] | — | Available commands. |
| onSelect | (command) => void | — | Called on pick. |
| defaultValue | string | — | Initial input value. |