0.1.0 • Published 4 years ago

react-dp v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

react-dp

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

Install

Using yarn

yarn add react-dp

Using npm

npm install --save react-dp

Usage

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

class MyEditor extends React.Component {
  render() {
    return (
      <DisplayPicEditor
        src='https://media.kubric.io/api/assetlib/83e20ab9-43ff-4a96-afd1-94f26f1b77f1.png'
        overlay='https://media.kubric.io/api/assetlib/a80605c8-d308-4b59-9c13-15a9ad1952ac.png'
        size={400}
        backgroundColor='#888'
      />
        <button
          onClick={() => {
            dpEditor.current.saveAsImage();
          }}>
          Save Image
        </button>˝
    );
  }
}

export default MyEditor;
0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.1

4 years ago