jerome-oc-p14-modal

1.0.4 • Public • Published

to use this librairy you can follow this example

import React, { useState } from 'react';
import {Modal} from "jerome-oc-p14-modal",
import "jerome-oc-p14-modal/dist/style.css";
const Exemple = () => {
    const [modal, setModal] = useState(false);

    const toggleModal = () => {
        setModal(!modal)
    }

    return <Modal isOpen={modal} onClose={toggleModal}> My awesome modal content </Modal>
}

Readme

Keywords

none

Package Sidebar

Install

npm i jerome-oc-p14-modal

Weekly Downloads

0

Version

1.0.4

License

none

Unpacked Size

128 kB

Total Files

6

Last publish

Collaborators

  • benvrel