Ship-It Designv0.0.3
GitHub

CommandPalette

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Props#

Props for CommandPalette
PropTypeDefaultDescription
open *boolean
onOpenChange *(open: boolean) => void
query *string
onQueryChange *(query: string) => void
groups *readonly CommandPaletteGroup[]Already-matched, ready-to-render groups. Use `filterCommandItems` for the simple case.
onSelect *(id: string) => voidCalled with the item id when the user picks an item (click or Enter).
placeholderstring | undefinedSearch…Placeholder text for the search input.
footerReactNodeFooter hint row (kbd legend). Accepts free-form children.
emptyStateReactNodeEmpty-state node when groups resolve to zero items.
widthnumber | undefined540Pixel width of the palette panel. Default 540.