Command Menu
Searchable command palette (⌘K). Supports grouped sections, keyboard navigation, and custom items.
import
{ CommandMenu, DEFAULT_SECTIONS } from "@pepulux/ui"Default
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| open* | boolean | — | Controls menu visibility |
| onClose* | () => void | — | Called when menu closes |
| sections* | CommandSection[] | — | Grouped command items — { title, items: { id, label, href?, onClick?, icon? }[] } |
| placeholder | string | "Search…" | Input placeholder text |