ocr-p14-modal

1.0.2 • Public • Published

Modal component

A simple Modal component for React. This component render a modal with a message in the center of the screen.

Exemple:

Getting Started

render a modal with a message in the center of the screen

Configuration

The component needs two props :

  • {message} : write here the message you want to display in the modal.
  • {onClose} : handler to close the modal. You will have to add a handle closing function in your file.

Installation

The package can be installed via npm :

npm i ocr-p14-modal

developped with the current latest version of React (v18.2.0).

Package Sidebar

Install

npm i ocr-p14-modal

Weekly Downloads

2

Version

1.0.2

License

none

Unpacked Size

61.1 kB

Total Files

5

Last publish

Collaborators

  • tintin0013