react-fuzzy-searcher
Version:
React component for fuzzy searching using fuse.js for the search
15 lines (14 loc) • 932 B
TypeScript
import * as React from "react";
import { Theme, WithStyles } from "@material-ui/core/styles";
import { ISearchResultOptions } from "./SearchResult";
declare const styles: (theme: Theme) => Record<"root" | "dropdownContainer" | "grow" | "menuItem" | "noResultsText", import("@material-ui/core/styles/withStyles").CSSProperties>;
export interface ISearchDropdownProps extends WithStyles<typeof styles> {
showDropdown: boolean;
anchorEl: HTMLDivElement | null;
handleDropdownClose(event: any): void;
data: any;
maxDropdownHeight: string;
searchResultOptions?: ISearchResultOptions;
}
declare const _default: React.ComponentType<Pick<ISearchDropdownProps, "maxDropdownHeight" | "searchResultOptions" | "showDropdown" | "data" | "anchorEl" | "handleDropdownClose"> & import("@material-ui/core").StyledComponentProps<"root" | "dropdownContainer" | "grow" | "menuItem" | "noResultsText">>;
export default _default;