A command dialog for navigation and quick actions.
CommandMenu defines how EnterUI handles a command dialog for navigation and quick actions, including default structure, accessible states, and token-driven styling.
The command surface opens as a focused dialog.
<CommandMenu>
<CommandMenuTrigger asChild><Button variant="secondary">Open command menu</Button></CommandMenuTrigger>
<CommandMenuContent>
<CommandMenuInput />
<CommandMenuList>
<CommandMenuGroup heading="Navigation">
<CommandMenuItem>Open dashboard</CommandMenuItem>
<CommandMenuItem>View components</CommandMenuItem>
</CommandMenuGroup>
</CommandMenuList>
</CommandMenuContent>
</CommandMenu>import {
Button,
CommandMenu,
CommandMenuContent,
CommandMenuEmpty,
CommandMenuGroup,
CommandMenuInput,
CommandMenuItem,
CommandMenuList,
CommandMenuTrigger,
} from "@froggdesign/enter-ui-react";Use CommandMenuEmpty when a filtered list has no results.
The menu content uses Dialog focus handling. Items are native buttons with option roles for reliable keyboard activation.
CommandMenuItem: onSelect, disabled, and button props.CommandMenuInput: native search input props.Every exported component accepts className when it renders an element. EnterUI styles use .eui-* classes and --eui-* variables mapped from FroggDesign theme tokens.