Overlays

CommandPalette

The signature feature. Arrow-key navigation, Enter to select, Esc to close. Generic across actions, navigation, and search.

CommandPalette is the kit's signature surface. ⌘K (or Ctrl+K) anywhere opens it. Arrow keys navigate the result list, Enter selects, Esc closes. Each item supports an icon, label, optional description, and optional keyboard hint.

Drives the entire keyboard-first flow inside the KidCash app — adding a chore, switching kids, opening settings — and works equally well as a documentation search or a navigation shortcut launcher in your own app.

Live preview

or pressK

Example

tsx
import { CommandPalette, type CommandItem } from '@kidcash/ui';

const items: CommandItem[] = [
  { id: 'goal', label: 'Add savings goal', icon: '🎯', onSelect: () => navigate('/goals/new') },
  { id: 'chore', label: 'Add chore', icon: '🧹', onSelect: () => navigate('/chores/new') },
];

<CommandPalette open={open} onClose={() => setOpen(false)} items={items} />

Want all 27 in one place?

The home playground shows every component side-by-side. Or install @kidcash/ui and use CommandPalette in your own app.