react-img-input
v1.3.3
Published
React Input Component with build in Compress and Cropping features
Downloads
22
Maintainers
Readme
react-img-input
Another cool React Component Library
🚀 See it in Action
Install
npm install --save react-img-inputUsage
Default Usage
import React from 'react'
import { ReactImgInput } from 'react-img-input'
import 'react-img-input/dist/index.css'
const config = {
size: 120,
captureBtn: {
bg: 'crimson',
color: '#fff',
},
cropBtn: {
bg: '#F4B230',
color: '#fff',
},
defaultImg: '',
theme: 'light',
compression: {
maxSizeMB: 0.1,
maxWidthOrHeight: 500,
useWebWorker: true,
}
}
const App = () => {
return <ReactImgInput config={config} setOutput={console.log} />
}
export default App
Support
License
This project is licensed under the MIT License - see the LICENSE file for details

