Description
This a funny puzzle game. Only adding one image your can slice it into what ever pieces you want to make it more complex.
Installation
npm i @sabbir1055/drag-drop-puzzle --save
Uses
import React from 'react'
import Puzzle from '@sabbir1055/drag-drop-puzzle'
function App() {
const finalResult = (data) => {
console.log(data)
}
return (
<>
<Puzzle imgUrl = 'https://cdn.jpegmini.com/user/images/slider_puffin_before_mobile.jpg' getResult = {finalResult}/>
</>
)
}
export default App;
Options
drag-drop-puzzle support many options. These are :
Git repository
If you want to contribute click here