UNPKG

504 BTypeScriptView Raw
1import * as React from 'react';
2import type { InputProps, InputRef } 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<InputRef>>;
10export default Search;