Open palette
Last run: Open the palette
With shortcut hint
Pass enableShortcut to register ⌘K in the app shell.
API
| Prop | Required | Type | Default | Description |
|---|---|---|---|---|
| theme | Optional | SiteTheme | atelier | Visual theme. |
| mode | Optional | "light" | "dark" | light | Color mode. |
| open / onOpenChange | Optional | boolean | — | Controlled visibility. |
| items | Optional | CommandPaletteItem[] | — | id, label, group, keywords, icon, onSelect. |
| placeholder | Optional | string | Search commands… | Search field placeholder. |
| enableShortcut | Optional | boolean | true | Register ⌘K / Ctrl+K toggle. |
| emptyMessage | Optional | string | — | Copy when filter returns no items. |