Skip to main content

Overview

Command Palette gives users rapid keyboard navigation and quick actions with Ctrl+K or Cmd+K.

Triggering from JavaScript

You can launch a command palette programmatically or via the global keyboard listener:

const palette = boodoo.CommandPalette.getOrCreateInstance(document.querySelector('#my-palette'), {
  items: [
    { title: 'Dashboard', href: '/dashboard', icon: '📊', shortcut: 'G D' },
    { title: 'Toggle Theme', action: () => boodoo.theme.toggle(), icon: '🌓' }
  ]
});

palette.open();