0.1.9 • Published 2 years ago

modal-react-for-projects v0.1.9

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

React Modal component

A simple component displaying a personalized message in a new window.

Installation

Run the following command: npm install modal-react-for-projects

How to use

import React, { useState } from 'react';
import { Modal } from 'modal-react-for-projects';

const App = () => {

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

return (
    <Modal title="My Modal" onClose={() => setShow(false)} show={show}>
        <p className="text">Your message here</p>
    </Modal>
  );
};

export default App;

Example

Imgur

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago