# react-profile-image-box

> Profile image box for user to view profile image and upload image to server

Latest version **1.0.5** (published 2020-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-profile-image-box
pnpm add react-profile-image-box
yarn add react-profile-image-box
bun add react-profile-image-box
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-02-16 |
| First published | 2020-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 21 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | pritomkucse |
| Maintainers | pritomkucse |

## Links

- npm: https://www.npmjs.com/package/react-profile-image-box
- Repository: https://github.com/pritomkucse/react-profile-image-box
- Homepage: https://github.com/pritomkucse/react-profile-image-box#readme
- Issues: https://github.com/pritomkucse/react-profile-image-box/issues
- npm.io page: https://npm.io/package/react-profile-image-box

## Recent versions

- 1.0.5 (latest) — 2020-02-16
- 1.0.3 — 2020-02-15
- 1.0.2 — 2020-02-15
- 1.0.0 — 2020-02-15

## README

# react-profile-image-box

> Profile image box for user to view profile image and upload image to server

[![NPM](https://img.shields.io/npm/v/react-profile-image-box.svg)](https://www.npmjs.com/package/react-profile-image-box) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

![Image Box](https://user-images.githubusercontent.com/25843631/74607244-69cbc300-5101-11ea-92d5-eadcd5894b63.JPG)

## Install

```bash
npm install --save react-profile-image-box
```

## Usage

```jsx
import React, { Component } from 'react'

import ProfileImageBox from 'react-profile-image-box'

export default class App extends Component {
  state = {
    src: "http://test.com/avatar_images_by_user/72"
  }

  onFileChange(e, additionalParams) {
    console.log(e.target.files);    
    console.log(additionalParams);
    
    this.setState({src: "http://test.com/avatar_images_by_user/70"});
  }

  render () {
    return (
      <div>
        <ProfileImageBox 
          alt="Alt Text" 
          allowUpload={true} 
          onFileChange={(e) => this.onFileChange(e, {type: 'user-image'})} 
          src={this.state.src}/>
      </div>
    )
  }
}
```

## License

MIT © [pritomkucse](https://github.com/pritomkucse/)

---
_Source: https://npm.io/package/react-profile-image-box · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
