mg-p14-modal
v0.0.7
Published
This librairy help you to manage your modals
Downloads
15
Maintainers
Readme
mg-p14-modal
This librairy help you to manage your modals
Install
to install :
npm install mg-p14-modal
ou :
yarn install mg-p14-modal
Documentation
import :
on the top of files incert :
import { Modal } from 'mg-p14-modal'
how to use :
Modal have 3 parameters :
- isOpen : a boolen who inform if the modal is open
- onClose : execute a fonction on click on close
- children : the content of the modal