CommandPalette
Global search dialog component
Internal Component
This component is intended solely for use within GitHub and is not available for external use.React
ready
Props
CommandPalette
| Name | Default | Description |
|---|---|---|
open Required | boolean | |
onOpenChange Required | (open: boolean) => void | |
config Required | CommandPaletteConfig | |
routeContext Required | CommandPaletteRouteContext | |
status Required | Readonly<{ kind: "initial" | "pending" | "complete" | "error"; }> | |
staticResultsByPage | CommandPaletteStaticResultsByPage | |
localResultsByPage | CommandPaletteLocalResultsByPage | |
onAction | (action: CommandPaletteLocalResult) => void | |
actionFeedback | CommandPaletteActionFeedback | |
actionError | string | |
inputRef | React.RefObject<HTMLInputElement> | |
onTestAction | (action: Readonly<{ pageKey: string; resultId: string; }>) => void | |
returnFocusRef | any | |
contextualPages | ContextualPagesSource | |
searchProviders | SearchProvidersSource | |
resultGroupSettings | readonly CommandPaletteResultGroupSettings[] | |
helpEnabled | boolean |
CommandPaletteDotcom
| Name | Default | Description |
|---|---|---|
routePath | string | |
onReady | (ready: boolean) => void | |
navigate | (destination: string) => void |