@seryllns/react-usemodal
v0.1.1
Published
## Installation
Downloads
2
Readme
React Modal package for OpenClassroom formation
Installation
npm i @seryllns/react-usemodal
usage
import Modal from "@seryllns/react-usemodal"
function App() {
return (
<div className="App">
<Modal title={"toto"}>
<ul>
<li>Pommes</li>
<li>Poires</li>
<li>Bananes</li>
</ul>
</Modal>
);
}
modal props
| Argument | Type | Description | required |
| ----------- | -------- | ---------------------- | ------------- |
| title | string
| Title display on modal | * |
| children | string
| Modal content | * |
| initialOpen | string
| Default modal open | default=false |