UNPKG

desmy-react

Version:

Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.

31 lines (30 loc) 992 B
import React, { Component } from 'react'; interface TextInputProps { defaultValue?: string; type?: string; className?: string; inputClassName?: string; emailExtension?: string; onChange: (value: string) => void; onRef?: (instance: DesmyTextInput | null) => void; autoFocus?: boolean; disabled?: boolean; rows?: number; label: string; } interface TextInputState { input: { [key: string]: string; }; } declare class DesmyTextInput extends Component<TextInputProps, TextInputState> { enteredInput: string; constructor(props: TextInputProps); componentDidMount(): void; handleDefaultRequest: () => void; componentDidUpdate: (_prevProps: TextInputProps, _prevState: TextInputState) => Promise<void>; handleTextAreaChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void; handleChange: (event: React.ChangeEvent<HTMLInputElement>) => void; render(): React.JSX.Element; } export { DesmyTextInput };