yk-react-modal-plugin
v0.1.1
Published
A customizable React Modal Plugin
Downloads
5
Readme
Customizable React Modal Plugin
Example
Below an example which was used as validation for an employee record form
Full example code is available insrc/example/App.js
Installation
NPM Link
Project Installation
In your project directory, run the following command to install the npm package:
npm i yk-react-modal-plugin
How to import the component in your project ?
In your file, import the component from the installed package like this:
import { Modal } from 'yk-react-modal-plugin'
Use your own parameters according the example
import { Modal } from "yk-react-modal-plugin";
const [modalIsOpen, setModalIsOpen] = useState();
<Modal
display={modalIsOpen}
setDisplay={setModalIsOpen}
img={img}
title="title"
txt="txt"
/>