0.2.1 • Published 1 year ago

simple-react-modal-wj v0.2.1

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

simple-react-modal-wj

A Simple modal

NPM JavaScript Style Guide

Install

npm install --save simple-react-modal-wj

Usage Example

import { Modal } from 'simple-react-modal-wj'

function EnclosingFunction() {
  const [openModal, setOpenModal] = useState(false)
  return (
    <button onclick={setOpenModal}>Click to open modal 😉</button>
    <Modal
      isOpen={openModal}
      onClose={() => {
        setOpenModal(false)
        return true
      }}
    />
  )
}

Options

You can use those props to add specific content through the modal :

 title={here you can add a title}
subTitle={here you can add a subtitle near the title}
content={here yu can add your main content}

License

MIT © WillemJou

0.2.1

1 year ago

0.2.0

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

1.0.0

1 year ago