1.0.3 • Published 1 year ago
modal-lib-aa v1.0.3
modal-lib-aa
Description
Modal plugin a library of React components created using create-react-app
.
Installation
Use the command:
npm install modal-lib-aa
or
yarn add modal-lib-aa
How to use it ?
Import the plugin:
import { ModalLibAA } from "modal-lib-aa"
Use this code:
const [openModal, setOpenModal] = useState(false)
Return the modal:
{openModal && <ModalLibAA
openModal={openModal}
setOpenModal={setOpenModal}
modalStyle={modalStyle}
messageStyle={messageStyle}
message="Le message de votre modale"
closeModalStyle={closeModalStyle}
/>}
You can custom the modal if you want