1.0.12 • Published 2 years ago

marilyne-simplemodal-react v1.0.12

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

A simple Modal React component Plugin

Description

Here is a plugin made using npm publish to store a reusable react modal component.

How to install ?

npm i marilyne-simplemodal-react

How to use ?

  1. Import the plugin in your project :
import ModalPlugIn from "marilyne-simplemodal-react";

There are three properties :

-modalVisible : boolean,true or false

-mainTexT :string

-childrenText : string if you want to add comments

  1. Example of a jsx code to call the external component :
<ModalPlugIn
  modalVisible={true}
  mainTexT={"Main text !"}
  childrenText={"additional information"}
/>

Default css

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 2px solid #355506;
    border-radius: 10px;
    width: 60%; /* Could be more or less, depending on screen size */
  }

You can custom style by editing the default css.

Author of this plugin :

Marilyne DESTOMBES, student at OpenClassRooms

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago