Oddmash UI
All components

Command Palette

Find and execute actions.

Usage

Open with an explicit trigger or an opt-in Mod+K shortcut. Supply descriptive grouped results and a consumer-owned filter when needed.

Accessibility

Use arrow keys, Enter and Escape. Provide distinct result labels and descriptions.

PropertyTypeDefault
itemsreadonly CommandPaletteItem[]Required
open / defaultOpenbooleanfalse
onOpenChange(open: boolean) => voidNone
shortcutbooleanfalse
dismissLabelstringNone
maxResultsnumberAll
filter(item, query) => booleanDefault matching
<CommandPalette
  trigger={<Button>Commands</Button>}
  title="Commands"
  description="Choose an action"
  searchLabel="Search commands"
  emptyLabel="No commands found"
  dismissLabel="Close commands"
  items={[
    { id: 'save', label: 'Save project', group: 'Project', description: 'Save current changes', onSelect: () => {} },
    { id: 'guide', label: 'Usage guide', group: 'Documentation', onSelect: () => {} },
  ]}
/>

Interactive documentation