UNPKG

@searcly/widget

Version:

Searcly Visual Search Widget for React

19 lines (18 loc) 485 B
import React from 'react'; export interface SearclyWidgetProps { apiKey: string; theme?: { primaryColor?: string; textColor?: string; backgroundColor?: string; fontFamily?: string; }; options?: { showFilters?: boolean; layout?: 'grid' | 'list'; limit?: number; }; onSearch?: (results: any) => void; onError?: (error: Error) => void; } export declare const SearclyWidget: React.FC<SearclyWidgetProps>;