UNPKG

react-fuzzy-searcher

Version:

React component for fuzzy searching using fuse.js for the search

17 lines (16 loc) 917 B
import * as React from "react"; import { Theme, WithStyles } from "@material-ui/core/styles"; declare const styles: (theme: Theme) => Record<"root" | "avatar" | "resultText" | "resultTitle" | "resultSubtitle" | "resultType", import("@material-ui/core/styles/withStyles").CSSProperties>; export interface ISearchResultOptions { showAvatar?: boolean; searchResultTitleKey?: string; searchResultMatchKeys?: {}; searchResultImageUrl?: string; } export interface ISearchResultProps extends WithStyles<typeof styles> { fuseResult: any; takeTopMatches?: number; searchResultOptions?: ISearchResultOptions; } declare const _default: React.ComponentType<Pick<ISearchResultProps, "searchResultOptions" | "fuseResult" | "takeTopMatches"> & import("@material-ui/core").StyledComponentProps<"root" | "avatar" | "resultText" | "resultTitle" | "resultSubtitle" | "resultType">>; export default _default;