UNPKG

683 BTypeScriptView Raw
1import { Component, ReactNode } from 'react';
2import Input, { InputProps } from './Input';
3import { Size } from '../_util/enum';
4export interface SearchProps extends InputProps {
5 inputPrefixCls?: string;
6 onSearch?: (value: string) => any;
7 enterButton?: boolean | ReactNode;
8}
9export default class Search extends Component<SearchProps, any> {
10 static displayName: string;
11 static defaultProps: {
12 enterButton: boolean;
13 size: Size;
14 };
15 private input;
16 onSearch: () => void;
17 focus(): void;
18 blur(): void;
19 saveInput: (node: Input) => void;
20 getPrefixCls(): string;
21 getButtonOrIcon(): JSX.Element;
22 render(): JSX.Element;
23}