luka.pg-modal-package-react
v1.0.5
Published
A package to display a react modal
Downloads
9
Readme
A React modal :
Npm package to add a react Modal component
Installation
Start with adding the package in your project :
npm i luka.pg-modal-package-react
Usage
Import and setup the package
Import the package:
import { Modal } from 'luka.pg-modal-package-react';
Add the state to control if the modal is visible or not.
const [show, setShow] = useState(false);
Then add the modal component to the page:
<Modal title='' onClose={ ()=> setShow(false) } show={ show } />