0.1.1 • Published 1 year ago

yk-react-modal-plugin v0.1.1

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Customizable React Modal Plugin

Example

Below an example which was used as validation for an employee record form Modal Plugin Example

Full example code is available insrc/example/App.js


Installation

NPM Link

React Modal Plugin

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"
    />