UNPKG

trieve-search-component

Version:

The easiest way to get up and running in your app using trieve search.

30 lines 928 B
import React, { CSSProperties } from "react"; import { ChunkFilter } from "trieve-ts-sdk"; export interface Theme { mode?: "light" | "dark"; rounded?: "sm" | "md" | "lg" | "none"; font?: string; padding?: "sm" | "md" | "lg" | "xl"; shadow?: "sm" | "md" | "lg" | "none"; border?: string; containerClassName?: string; itemClassName?: string; containerStyles?: CSSProperties; itemStyles?: StyleSheet; } export interface RecommendationsConfig { theme?: Theme; datasetId: string; productId: string; apiKey: string; baseUrl?: string; overflowScroll?: boolean; maxResults?: number; title?: string; orientation?: "horizontal" | "vertical"; cssRelease?: string; filter?: ChunkFilter; useGroupSearch?: boolean; } export declare const Recommendations: (config: RecommendationsConfig) => React.JSX.Element; //# sourceMappingURL=Recommendations.d.ts.map