sheengemologic ui
All components

CommandPalette

Searches static, remote and registered shortcut commands with retained refresh results and app-owned recents.@gemologic/sheen · overlays

Playground

This example has no scalar controls. Its validated source remains interactive below.
<ShortcutProvider development><CommandPalette sources={sources} /></ShortcutProvider>

Variant matrix

Application commands

Anatomy

Package
@gemologic/sheen
Source
packages/ui/src/primitives/CommandPalette.tsx
Tokens
  • --sheen-color-bg-raised
  • --sheen-color-border
  • --sheen-color-bg-selected
  • --sheen-elevation-overlay

Accessibility

Role: dialog containing a combobox and listboxKeyboard: mod+k, ArrowUp, ArrowDown, Enter, Escape

Do

  • Provide stable command IDs and server-known initial remote results.

Do not

  • Do not read recents on mount or blank accepted results during remote search.

Generated props

NameTypeDefaultDescription
sources *readonly CommandPaletteSource[]Static and abortable remote command sources with stable IDs.
openbooleanControlled open state.
defaultOpenbooleanfalseInitial uncontrolled open state.
onOpenChange(open: boolean) => voidReceives open-state requests.
recentsCommandPaletteRecentsServer-known recent IDs plus app-owned persistence.
shortcutScopestringglobalScope where mod+k opens the mounted palette.
onSourceError(sourceId: string, error: unknown) => voidReports a failed remote source without clearing accepted results.
onCommandError(commandId: string, error: unknown) => voidReports a selected command failure.
classstringAdditional class on the command root.
Native Solid/HTML attributes remain available and are omitted from this authored-prop view.