CommandPalette
input
CommandPalette: a fuzzy-search overlay widget
Terminal
$termuijs render command-palette
Installation
$ bunx termuijs add command-palette
Copies the source into src/components/command-palette/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { CommandPalette } from '@termuijs/widgets'ts
new CommandPalette(options: CommandPaletteOptions, style: Partial<Style> = {})API Reference
CommandPalette
| Prop | Type | Required | Description |
|---|---|---|---|
commands | Command[] | required | — |
onClose | () => void | optional | — |
placeholder | string | optional | Placeholder shown when query is empty |
maxVisible | number | optional | Max number of commands shown at once |