UNPKG

@searcly/widget

Version:

Searcly Visual Search Widget for React

22 lines (19 loc) 524 B
import React from 'react'; 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; } declare const SearclyWidget: React.FC<SearclyWidgetProps>; export { SearclyWidget, type SearclyWidgetProps };