2.2.4 • Published 6 months ago
@types/react-input-autosize v2.2.4
Installation
npm install --save @types/react-input-autosize
Summary
This package contains type definitions for react-input-autosize (https://github.com/JedWatson/react-input-autosize#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-input-autosize.
index.d.ts
// Type definitions for react-input-autosize 2.2
// Project: https://github.com/JedWatson/react-input-autosize#readme
// Definitions by: Jason Unger <https://github.com/jsonunger>
// Frank Li <https://github.com/franklixuefei>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
export interface AutosizeInputProps extends React.InputHTMLAttributes<HTMLInputElement>, React.ClassAttributes<HTMLInputElement> {
inputClassName?: string | undefined;
inputRef?: ((instance: HTMLInputElement | null) => void) | undefined;
inputStyle?: React.CSSProperties | undefined;
minWidth?: string | number | undefined;
onAutosize?: ((inputWidth: string | number) => void) | undefined;
placeholderIsMinWidth?: boolean | undefined;
extraWidth?: string | number | undefined;
injectStyles?: boolean | undefined;
}
declare class AutosizeInput extends React.Component<AutosizeInputProps> {
copyInputStyles(): void;
getInput(): HTMLInputElement;
}
export default AutosizeInput;
Additional Details
- Last updated: Wed, 07 Jul 2021 17:33:45 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Jason Unger, and Frank Li.