npm.io
0.0.13 • Published 2 years ago

@types/react-file-input

Licence
MIT
Version
0.0.13
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-file-input

Summary

This package contains type definitions for react-file-input (https://www.npmjs.com/package/react-file-input).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-file-input.

index.d.ts

/// <reference types="react" />

declare module "react-file-input" {
    interface FileInputProps {
        name: string;
        className: string;
        accept: string;
        placeholder: string;
        disabled?: boolean | undefined;
        onChange: (event: React.SyntheticEvent<any>) => void;
    }

    class FileInput extends React.Component<FileInputProps> {
    }

    export = FileInput;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Dmitry Rogozhny.