All components
Navigation
CommandMenu
beta
Since 1.1
Searchable command palette in a portalled overlay with keyboard navigation and grouping.
Navigation
primitive
Display
Documented
import { CommandMenu } from '@ivim/native/components';
When to use
Use when
Power users need fast, keyboard-first access to many actions/destinations.
Don't use when
There are only a few actions — a Menu or ButtonGroup is simpler.
Example
Preview
Code
Accessibility
Roles and screen-reader behavior this component provides, plus keyboard interactions.
•
Search input is labeled; results are role="listbox" with the active item aria-selected.
•
Arrow keys move the active command, Enter runs it, Escape closes.
Up / Down
Move the active command.
Enter
Run the active command.
Escape
Close the palette.
State coverage
Interaction and visual states this component supports.
base
semantic color
density
Token references
Semantic design tokens this component page exercises. Tap one to edit it live.
Related components
Components that solve adjacent problems or compose with this one.
Menu
Action menu owning its trigger and overlay, with sections, icons, shortcuts, destructive items, and a Popover for interactive content.
Select
Single-choice picker with sections, rich items, a searchable combo-box mode, and a popover-on-web / sheet-on-native overlay.
MultiSelect
Multiple-choice picker with search, select-all, removable value tags, a custom footer, and distinct empty and no-match states.