DOCS
v0.4

AI Components / Keyboard Shortcuts

Keyboard Shortcuts

Shortcut hint overlay modal with grouped shortcuts and search.

ai-essentials v0.5.0

Playground

Examples

Demo
Show Shortcuts
<cg-button onclick="this.nextElementSibling.open=true">Show Shortcuts</cg-button><ai-keyboard-shortcuts></ai-keyboard-shortcuts>

Import

import { AiKeyboardShortcuts } from '@cognivo/components';
// Or tree-shake: import '@cognivo/components/ai-keyboard-shortcuts';

Per-component imports ship only that component (~8 kB gzip).

API Reference

PropTypeDefaultDescription
shortcuts {keys, description, category?}[] Shortcut list
open boolean false Open state

Events

EventDetailDescription
ai-shortcuts-close {} Closed