1.0.1 • Published 2 years ago

modal-vite-lib v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Modal-vite-lib

Requirements

React : 18.2.0 \ Node : 18.16.0

Install

npm i modal-vite-lib

Example

<div className="App">
  <Modal onClose={() => setIsDislplay(false)} isDisplay={isDisplay}>
    <p>Example modal content</p>
  </Modal>
</div>

In this example, we have three things to define :

  • isDisplay: it's a boolean to know if the modal is display or not
  • onClose: it's a function to close the modal, here with setIsDisplay
  • And then, the HTML content of the modal
1.0.1

2 years ago

1.0.0

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago