UNPKG

@nu-art/thunder

Version:

Thunder - React & Typescript based frontend framework

22 lines (21 loc) 634 B
import * as React from 'react'; declare type Props<Key> = { onChange: (value: string, id: Key) => void; onAccept?: () => void; style?: object; value?: string; error?: string; type: 'text' | 'number' | 'password'; placeholder?: string; id?: Key; }; declare type State = { value: string; }; export declare class TS_Input<Key extends string> extends React.Component<Props<Key>, State> { constructor(props: Props<Key>); changeValue: (event: React.ChangeEvent<HTMLInputElement>) => void; handleKeyPress: (event: React.KeyboardEvent<Element>) => void; render(): JSX.Element; } export {};