ze-react-component-library
Version:
ZeroETP React Component Library
20 lines (19 loc) • 700 B
TypeScript
import React, { HTMLAttributes } from "react";
import "./index.less";
export declare type ZESearchBarProps = {
loading?: boolean;
onSearch?: (value?: string) => void;
isMobile?: boolean;
initialValue?: string;
questionToEdit?: string;
hide?: boolean;
} & HTMLAttributes<HTMLDivElement>;
export declare const useSuggestions: () => {
suggestions: string[];
setSuggestions: React.Dispatch<React.SetStateAction<string[]>>;
getSuggestions: (...args: any) => Promise<string[]>;
cancelGetSuggestions: import("@umijs/use-request/lib/types").noop;
isGettingSuggestions: boolean;
};
declare const ZESearchBar: React.FC<ZESearchBarProps>;
export default ZESearchBar;