0.1.7 • Published 1 year ago

fpw-my-modal v0.1.7

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

fpw-my-modal

Description

A modal pluggin for react using create-react-app.

Installation

Run the following command in your terminal:

npm install fpw-my-modal

How to use ?

import { useState } from "react"
import { Modal } from "fpw-my-modal"

const [openModal, setOpenModal] = useState(false)

<Modal
    openModal={openModal}
    setOpenModal={setOpenModal}
    message="your-modal-message"
    className="your-class"
/>

If you want to customize the modal with the property className you have to override the default style with !important