UNPKG

493 BTypeScriptView Raw
1import * as React from 'react';
2import Input, { InputProps } from './Input';
3export interface SearchProps extends InputProps {
4 inputPrefixCls?: string;
5 onSearch?: (value: string, event?: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLInputElement>) => void;
6 enterButton?: React.ReactNode;
7 loading?: boolean;
8}
9declare const Search: React.ForwardRefExoticComponent<SearchProps & React.RefAttributes<Input>>;
10export default Search;