Package Exports
- vemc-modal
- vemc-modal/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vemc-modal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vemc-modal
Description
A modal pluggin for react using create-react-app.
Installation
Run the following command:
npm install vemc-modal
How to use ?
1 - Import the pluggin :
import {Modal} from "vemc-modal"
2 - Use this state :
const [displayModal, setDisplayModal] = useState(false)
3 - Return the modal :
<Modal
showModal={displayModal}
hideModal={()=>setDisplayModal(false)}
title="Enter your modal title here"
message="Hello, your message here"
buttonText1="Ok"
buttonText2="Cancel"
/>