@tenbox-dev/sura-ui-modal
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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;

Readme

Keywords

none

Package Sidebar

Install

npm i @tenbox-dev/sura-ui-modal

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

12.7 kB

Total Files

15

Last publish

Collaborators

  • tenbox-dev