0.1.2 • Published 1 year ago

react_modal_ocpenclassrooms_14 v0.1.2

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

react_modal_ocpenclassrooms_14

This plugin was designed as part of the last project of the Openclassrooms training, front-end developer.

Install

npm install react_modal_ocpenclassrooms_14

Use plugin

import  Modal  from  "react_modal_ocpenclassrooms_14";
const [active, setActive] = useState(false)
<Modal  isActive={active}  setActive={setActive}>{children}</Modal>

Change the style

NameTypeExample
modalStyleObjectmodalStyle={{display:"flex"}}