1.0.6 • Published 1 year ago
react-modal-rml v1.0.6
react-modal-jcto
A simple responsive and customizable modal for React projects.
1. Author
Jean Chane-to
2. Installation
npm install react-modal-jcto
3. Usage
import Modal from 'react-modal-jcto' Use as react component :
Text content
Use the prop modalText and pass in your modal text as a string
Styling
Use the following props:
modalBackgroundStyle: pass inline styling for modal background
modalBodyStyle: pass inline styling for modal body
modalButtonStyle: pass inline styling for modal close button
closeModalFunction: point your modal close function
modalTextStyle: pass inline styling for modal text
3. Example
Hope this helps!
Happy programming!