Command Palette
Overlays · CommandPalette
Props
CommandPalette
| Prop | Type | Notes |
|---|---|---|
items | PaletteItem[] | Required |
onClose? | () => void | |
placeholder? | string | |
inline? | boolean | |
loading? | boolean | Results are on their way (async search): shows a loading row. |
empty? | ReactNode | Shown when nothing matches (default: "Nothing matches …"). |
onQueryChange? | (query: string) => void | Called with the query as the user types, for searching on a server. |
open? | boolean | Optional: with `open` the component stays mounted while it animates out; without it, render it only while open. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |