0.1.28 • Published 3 years ago

wrapped-in-react-modal v0.1.28

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Wrapped

React modal wrapper with simple render and delete animations

Installation

npm:

$ npm install wrapped-in-react-modal

Examples

Here is a simple example of wrapped-in-react-modal being used in an app with some custom styles.

import { useState } from "react";
import Modal from 'wrapped-in-react-modal';

const App = () => {

  const [isModalOpen, setIsModalOpen] = useState(true)

  return (
    <div>
      <button onClick={ () => setIsModalOpen(prev => !prev)}>Open Modal</button>

      <Modal 
        isOpen={isModalOpen}
        setIsOpen={setIsModalOpen}
        wrapperStyles={{
          // Styles of wrapper
        }}
        modalStyles={{
          // Styles of modal window
        }}
        animation={{
          // Animation of modal window
        }}
      >
        <h1>hi</h1>
      </Modal>
    </div>
  )
}
0.1.21

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.14

3 years ago

0.1.26

3 years ago

0.1.15

3 years ago

0.1.2

3 years ago

0.1.27

3 years ago

0.1.16

3 years ago

0.1.28

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago