AI Components / Command Palette
Command Palette
⌘K command palette with fuzzy search, keyboard navigation, and category grouping.
ai-essentials v0.5.0
Playground
Examples
Demo
<cg-button onclick="this.nextElementSibling.open=true">Open ⌘K</cg-button><ai-command-palette></ai-command-palette> Import
import { AiCommandPalette } from '@cognivo/components'; // Or tree-shake: import '@cognivo/components/ai-command-palette'; Per-component imports ship only that component (~8 kB gzip).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
commands | {id, label, shortcut?, category?}[] | — | Command list |
open | boolean | false | Open state |
Events
| Event | Detail | Description |
|---|---|---|
ai-command-select | {id, label} | Command selected |