0.1.28 • Published 2 years ago

wrapped-in-react-modal v0.1.28

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.14

2 years ago

0.1.26

2 years ago

0.1.15

2 years ago

0.1.2

2 years ago

0.1.27

2 years ago

0.1.16

2 years ago

0.1.28

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago