Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
Command
v1.0.0 | View in StorybookWhen to use
- A power-user shortcut to access actions or destinations without navigating manually.
- Applications with a large number of actions or pages that would be impractical to surface all at once.
- When you want to support keyboard-driven workflows across the whole app.
When not to use
- Filtering a specific list or dataset on the page — use Search.
- Selecting from a known set of options in a form — use Combobox or Select.
- Simple navigation between a small number of pages — use Tabs or nav links.
Dos and don’ts
- Do group results into categories (actions, pages, recent, etc.) an ungrouped flat list becomes hard to scan quickly.
- Do use action verbs for command labels (“Open settings”, “Create asset”, “Switch to dark mode”).
- Do show the keyboard shortcut on whatever triggers the command menu.
- Do show a meaningful empty state when no results match — “No results for…” is more helpful than a blank panel.
- Do show a loading state rather than leaving the list empty while fetching if results load asynchronously.
- Do show recent or frequently used items surfaced by default as they make the primitive significantly more useful.
- Don’t use it as a general search input — it’s for actions and navigation, not content retrieval.
- Don’t include destructive actions without a confirmation step after selection.
Often used with
- Host surface (Dialog or Popover), search field row, result list with sections; KBD chord to open; optional Empty state when no matches.