1.0.1 • Published 5 months ago

modal-vite-lib v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months 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

5 months ago

1.0.0

6 months ago

0.0.12

6 months ago

0.0.11

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago

0.0.0

6 months ago