项目作者: EzequielBurg

项目描述 :
A custom file input for react web pages.
高级语言: TypeScript
项目地址: git://github.com/EzequielBurg/react-file-input-custom.git
创建时间: 2021-06-10T02:18:23Z
项目社区:https://github.com/EzequielBurg/react-file-input-custom

开源协议:MIT License

下载


React File Input Custom 📲

App Screenshot

A simple and humble react component for file input in web apps.

Feel free for contribute with this package. It’s for my necessity, but I want to help more devs that needs a different file input.

Commands

You can install with:

  1. npm install react-file-input-custom

or

  1. yarn add react-file-input-custom

Example

  1. import { ReactFileInputCustom } from 'react-file-input-custom';
  2. const App = () => <ReactFileInputCustom ></ReactFileInputCustom>;

Props Reference

Nothing is required.

Property Type Default Description
handleChange function - Receives the event from input
acceptedExtensions string - Accepted files extensions
backgroundColor string #3699ff Background color of input
textColor string #fff Color of icon & text
text string Selecione um arquivo Text of input
width string 250px Width of input
classes string - Additional CSS classes for input
…props { ...props } - Any props for input

Repository

https://github.com/EzequielBurg/react-file-input-custom/tree/master

This package was developed in TSDX ➡ https://tsdx.io/ .