2.0.6 • Published 4 months ago

react-photo-frame v2.0.6

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

React-Photo-Frame

Give Frame and photo.

Expected Output

Usage

import PhotoFrame from "react-photo-frame";
 const [trigger, setTrigger] = useState(false);
  const callbackImage = (cb) => {
    console.log(cb);
    setTrigger(false);
  };
  const triggerCallBack = () => {
    setTrigger(true);
  };

  return (
    <div  className="mycanvas">
      <PhotoFrame
        frameWidth={300}
        frameHeight={300}
        frameDesign="https://i.ibb.co/T0T2JNS/dd.png"
        frameImage="https://i.ibb.co/846vTdc/download.jpg"
        callbackImage={callbackImage}
        trigger={trigger}
        frameBorder={[10, 10, 50, 10]}
      />
      <button
        type="button"
        className="btn m-0 btn-dark fs10 rounded-0"
        onClick={triggerCallBack}
      >
        Submit
      </button>
    </div>
  );
};
2.0.6

4 months ago

2.0.3

4 months ago

2.0.2

4 months ago

2.0.5

4 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.0.5

9 months ago

1.0.4

1 year ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago