Skip to content
Twentyfirst UIPro

Command Palette

Overlays · CommandPalette

View as Markdown

Props

CommandPalette

PropTypeNotes
itemsPaletteItem[]Required
onClose?() => void
placeholder?string
inline?boolean
loading?booleanResults are on their way (async search): shows a loading row.
empty?ReactNodeShown when nothing matches (default: "Nothing matches …").
onQueryChange?(query: string) => voidCalled with the query as the user types, for searching on a server.
open?booleanOptional: with `open` the component stays mounted while it animates out; without it, render it only while open.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.