MCPcopy Create free account
hub / github.com/algolia/docsearch / SearchBoxProps

Interface SearchBoxProps

packages/docsearch-react/src/SearchBox.tsx:41–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}>;
40
41interface SearchBoxProps
42 extends AutocompleteApi<InternalDocSearchHit, React.FormEvent, React.MouseEvent, React.KeyboardEvent> {
43 state: AutocompleteState<InternalDocSearchHit>;
44 autoFocus: boolean;
45 inputRef: RefObject<HTMLInputElement | null>;
46 onClose: () => void;
47 onAskAiToggle: (toggle: boolean) => void;
48 onAskAgain: (query: string) => void;
49 onStopAskAiStreaming: () => Promise<void>;
50 placeholder: string;
51 isAskAiActive: boolean;
52 askAiStatus: UseChatHelpers<AIMessage>['status'];
53 askAiError?: Error;
54 isFromSelection: boolean;
55 translations?: SearchBoxTranslations;
56 askAiState: AskAiState;
57 setAskAiState: (state: AskAiState) => void;
58 onNewConversation: () => void;
59 onViewConversationHistory: () => void;
60 isThreadDepthError?: boolean;
61 askAiBlockingChrome?: 'minimal' | 'thread-depth';
62}
63
64export function SearchBox({
65 translations = {},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected