Command

An agent-native ⌘K command palette — a searchable, keyboard-first list that navigates nested sub-command pages, handles async loading / error / empty states, ranks recents, binds per-item shortcuts that actually fire, and opens a per-row action panel on → / ⌘.. CommandDialog is the canonical host (⌘/Ctrl + optional `/` open-shortcut, controllable open, imperative apiRef).

Stablev0.3.0@garn/ui/command

Default

Inline command list with grouped, filterable items and display-only shortcut hints.

Overview

Basic

Inline command list with grouped, filterable items and display-only shortcut hints.

Palette

The canonical ⌘K palette: a modal CommandDialog that binds its own open shortcut, floats recents up (useRecentCommands), groups sections, binds per-item shortcuts that fire, and shows a Kbd footer.

Async

States

Loading State

A static snapshot of the loading state — CommandLoading shows and CommandEmpty is suppressed (the loading↔empty guard).

Error State

A static snapshot of the async-failure state — CommandError (role=alert) with a Retry button.

Empty State

A static snapshot of the no-match state — a query that matches nothing renders 'No results for ‘…’'.

Actions

Actions

Per-item action panel — each row declares CommandItemActions; ↵ runs the primary, → / ⌘. opens the row's actions (each with a shortcut), Esc closes just the panel.

Recipes

Faceted Filter

A faceted multi-select filter recipe — Button + Popover + Command + Counter + Badge ('Status ⌄ 3 selected').