@claudedacc/modalcontainer
v1.0.9
Published
Open and close a modal in ReactJs
Downloads
34
Readme
what is this?
Open and close a modal in ReactJs
Installation
'npm i @claudedacc/modalcontainer'
Then...
import ModalContainer from "Modal";
const [ModalStatus, setModalStatus] = useState(true);
<ModalContainer
ModalStatus={ModalStatus}
setModalStatus={setModalStatus}
ModalContainerClass="none"
ModalBodyClass="none"
ModalcloseIcon="none"
>
Modal Text / other childrens...
</ModalContainer>
</>
##Props
Modal supports several props that are required:
- ModalStatus - boolean (Default to true) --- Default value of the modal status
- setModalStatus - boolean ( true / false) --- Change the state of the Modal status
- ModalContainerClass - object (default value "none" / {{custom style}}) --- custom your own modalContainer style
- ModalBodyClass - object (default value "none"/ {{custom style}}) --- custom your own ModalBodyClass style
- ModalcloseIcon - object (default value "none" / {{custom style}}) --- custom your own ModalcloseIcon style