Skip to content
roguelite labsAnthony Spezzano ↗
Skills/CommandPalette

CommandPalette

Always-visible searchable command palette with keyboard shortcut hints. Filter items by typing.

Use and inspectUse this pattern for the stated interaction and keep its keyboard path visible. Reset preview remounts the local example; it does not establish production persistence or a backend integration. Add a reduced-motion fallback where the source animates.Next: inspect the source and adapt its event or data boundary.
CommandPaletteAlways-visible searchable command palette with keyboard shortcut hints. Filter items by typing.
PropTypeDefaultDescription
items*CommandItem[]Array of command items with optional icon and kbd
placeholderstring"Search commands..."Input placeholder
onSelect(item: CommandItem) => voidCalled when an item is clicked