1.3.3 • Published 4 years ago

react-img-input v1.3.3

Weekly downloads
504
License
MIT
Repository
github
Last release
4 years ago

react-img-input

NPM   License   JavaScript Style Guide   npm downloads   Bundle size   GitHub stars

Another cool React Component Library

🚀 See it in Action

Install

react-img-input

npm install --save react-img-input

Usage

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

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.3.3

4 years ago

1.2.4

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

1.0.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.2

4 years ago

0.1.1

4 years ago

1.0.3

4 years ago

0.1.0

4 years ago