react-powerfool-modal

0.3.0 • Public • Published

React Powerfool Modal

Package for a React modal.

Table of Contents

  1. Installation
  2. Example

Installation

To install, you can use npm:

$ npm install --save react-powerfool-modal

Example

import React, { useState } from "react";
import { Modal } from "react-powerfool-modal";

function App() {
  const [show, setShow] = useState(false);

  return (
    <div>
      <button onClick={() => setShow(true)}>Open the modal</button>
      <Modal
        show={show}
        onClose={() => setShow(false)}
        message="The modal is open ! If you want you can close it with the button"
      />
    </div>
  );
}

export default App;

Readme

Keywords

Package Sidebar

Install

npm i react-powerfool-modal

Weekly Downloads

3

Version

0.3.0

License

none

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • cnahornyj