@sajari/sdk-react
Version:
React SDK for the Sajari API
14 lines (13 loc) • 507 B
TypeScript
/// <reference types="react" />
import { CSSObject } from "@emotion/core";
import { SearchStateAndHelpers } from "../Search/Search";
export interface SuggestionsProps {
searchProps: SearchStateAndHelpers;
typedInputValue: string;
suggestions?: string[];
styles?: {
container?: CSSObject;
item?: (isFocused: boolean) => CSSObject;
};
}
export declare function Suggestions({ searchProps, typedInputValue, suggestions, styles }: SuggestionsProps): JSX.Element;