DOCS
v0.4

AI Components / Command Palette

Command Palette

⌘K command palette with fuzzy search, keyboard navigation, and category grouping.

ai-essentialsv0.5.0

Playground

Examples

Demo
Open ⌘K
<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

PropTypeDefaultDescription
commands{id, label, shortcut?, category?}[]Command list
openbooleanfalseOpen state

Events

EventDetailDescription
ai-command-select{id, label}Command selected