@tenbox-dev/sura-ui-modal-payment
v1.0.2
Published
> Drag and drop modal.
Downloads
2
Readme
@tenbox-dev/sura-ui-modal
Drag and drop modal.
yarn add @tenbox-dev/sura-ui-modal
How to use?
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;