UNPKG

649 BTypeScriptView Raw
1import * as React from 'react';
2import { InputEventHandler } from './PropsType';
3import { Omit } from '../_util/types';
4export declare type HTMLInputProps = Omit<React.HTMLProps<HTMLInputElement>, 'onFocus' | 'onBlur'>;
5export interface InputProps extends HTMLInputProps {
6 onFocus?: InputEventHandler;
7 onBlur?: InputEventHandler;
8}
9declare class Input extends React.Component<InputProps, any> {
10 inputRef: HTMLInputElement | null;
11 onInputBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
12 onInputFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
13 focus: () => void;
14 render(): JSX.Element;
15}
16export default Input;