Command menu
Grouped actions with a nested export menu. Arrow keys navigate; Escape closes.
Navigation, commands, contextual details, and progressive disclosure—with keyboard access built in.
Grouped actions with a nested export menu. Arrow keys navigate; Escape closes.
Use for persistent application commands. Ordinary website links should remain normal navigation.
Right-click or use Shift+F10 on the focused surface. A visible action menu keeps the same options reachable on touch.
Sample analytics cardShort passive hints belong in tooltips. Details containing links or buttons belong in a popover.
Keep detailed guidance nearby without hiding the primary task.
Use a modal when an action must be completed or dismissed before continuing. Keep background content inert, contain focus, support Escape, and restore focus to the trigger.
Prefer a few clear destinations. Keep touch targets generous and provide labels with icons. Move secondary destinations into a labelled menu.
Choose an action to see its result.
Announce completed actions without moving the interface or stealing focus.
<Menu
label="Actions"
items={[
{ id: "inspect", label: "Inspect" },
{ id: "export", label: "Export", children: [
{ id: "json", label: "JSON" }
] }
]}
onAction={handleAction}
/>Interaction references: WAI-ARIA menus · disclosure · tooltip draft pattern.