Drag and drop modal.
yarn add @tenbox-dev/sura-ui-modal
import {
AsurRaaModal,
AsurRaaDraggableModalProvider,
} from "@tenbox-dev/sura-ui-modal";
import { Button } from "antd";
import { useState } from "react";
function App() {
const [state, setState] = useState<boolean>(false);
return (
<div className="App">
<header className="App-header">Playground</header>
<Button onClick={() => setState(true)}>open</Button>
<div>
<AsurRaaDraggableModalProvider>
<AsurRaaModal
title={"Test Modal"}
onCancel={() => setState(false)}
visible={state}
/>
</AsurRaaDraggableModalProvider>
</div>
</div>
);
}
export default App;