UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

70 lines (69 loc) 2.1 kB
/// <reference types="react" /> import React from 'react'; import { Component } from 'react'; export interface AutoSizeType { minRows?: number; maxRows?: number; } export interface InputProps { prefixCls?: string; className?: string; type?: string; id?: number | string; value?: any; defaultValue?: any; placeholder?: string; size?: 'large' | 'default' | 'small'; disabled?: boolean; readOnly?: boolean; addonBefore?: React.ReactNode; addonAfter?: React.ReactNode; onPressEnter?: React.FormEventHandler<any>; onKeyDown?: React.FormEventHandler<any>; onChange?: React.FormEventHandler<any>; onClick?: React.FormEventHandler<any>; onBlur?: React.FormEventHandler<any>; autosize?: boolean | AutoSizeType; autoComplete?: 'on' | 'off'; style?: React.CSSProperties; } export default class Input extends Component<InputProps, any> { static Group: any; static Search: any; static defaultProps: { disabled: boolean; prefixCls: string; type: string; autosize: boolean; }; static propTypes: { type: React.Requireable<any>; id: React.Requireable<any>; size: React.Requireable<any>; disabled: React.Requireable<any>; value: React.Requireable<any>; defaultValue: React.Requireable<any>; className: React.Requireable<any>; addonBefore: React.Requireable<any>; addonAfter: React.Requireable<any>; prefixCls: React.Requireable<any>; autosize: React.Requireable<any>; onPressEnter: React.Requireable<any>; onKeyDown: React.Requireable<any>; }; nextFrameActionId: number; refs: { input: any; }; state: { textareaStyles: null; }; componentDidMount(): void; componentWillReceiveProps(nextProps: any): void; handleKeyDown: (e: any) => void; handleTextareaChange: (e: any) => void; resizeTextarea: () => void; renderLabledInput(children: any): JSX.Element; renderInput(): any; render(): JSX.Element; }