Skip to main content
v7

Commander

A spotlight-style command palette with fuzzy search, grouped commands, and keyboard-driven navigation. Press Alt+K from anywhere to invoke it.

Package@g4rcez/componentsSectionFloating Elements

Examples

Basic Usage

Fuzzy search across multiple command groups. Try searching for 'log', 'play', or 'term' — or press Alt+K anywhere on this page.

Or press Alt + K

With Empty State

When a search query matches nothing, a custom empty message is displayed. Try opening the palette and typing something like 'xyz'.

Type xyz to see the empty state

With Preview Panel

The first available command appears in the page preview on open. Use the arrow keys to explore its cover, details, and database; the Projects filter is consumer-owned.

Use ↑ ↓ arrow keys to update the preview, or use the collapsible Projects filter.

When to use Commander

Use when

You need the documented Commander interaction or presentation in a product workflow.

Avoid when

A native HTML element already provides the Commander behavior you need.

Accessibility

Keep the Commander labeled and use its documented keyboard interaction. The component preserves visible focus and communicates state without relying on color alone.