An open API service indexing awesome lists of open source software.

https://github.com/tstreamdoth/react-dp


https://github.com/tstreamdoth/react-dp

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# react-dp

npm version
Downloads

Twitter like profile picture component & add custom overlay.
📸Export as base64 image using a clear user interface.

# Install

Just use yarn or npm to add it to your project:

```
yarn add react-dp
```

respective

```
npm install --save react-dp
```

# Usage

```javascript
import React, { useRef } from 'react';
import DisplayPicEditor from 'react-dp';

class MyEditor extends React.Component {
render() {
return (

{
dpEditor.current.saveAsImage();
}}>
Save Image
Ëť
);
}
}

export default MyEditor;
```