<script>consthandlebtnS1=()=>{alert("handlebtnS1 is clicked from a parent page.");
smallModal.closeModal()};consthandlebtnS2=()=>{alert("handlebtnS2 is clicked from a parent page.");
smallModal.closeModal()};</script><ModalButtonid={smallModalId}btnName={btnSName}/><SmallModalbind:this={smallModal}title={titleS}btn1={btnS1}btn2={btnS2}on:handlebtn1={handlebtnS1}on:handlebtn2={handlebtnS2}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.
</SmallModal>
Medium modals
<script>consthandlebtnM1=()=>{alert("handlebtnM1 is clicked from a parent page.");
mediumModal.closeModal()};consthandlebtnM2=()=>{alert("handlebtnM2 is clicked from a parent page.");
mediumModal.closeModal()};</script><ModalButtonid={mediumModalId}btnName={btnMName}btnColor={btnMColor}/><MediumModalbind:this={mediumModal}btnColor={btnMColor}title={titleM}btn1={btnM1}btn2={btnM2}on:handlebtn1={handlebtnM1}on:handlebtn2={handlebtnM2}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.
</MediumModal>
Large modals
<script>consthandlebtnL1=()=>{alert("handlebtnL1 is clicked from a parent page.");
largeModal.closeModal()};consthandlebtnL2=()=>{alert("handlebtnL2 is clicked from a parent page.");
largeModal.closeModal()};</script><ModalButtonid={largeModalId}btnName={btnLName}btnColor={btnLColor}/><LargeModalbtnColor={btnLColor}title={titleL}btn1={btnL1}btn2={btnL2}on:handlebtn1={handlebtnL1}on:handlebtn2={handlebtnL2}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.
</LargeModal>
Extra-large modals
<script>consthandlebtnExL1=()=>{alert("handlebtnExL1 is clicked from a parent page.");
extraLargeModal.closeModal()};consthandlebtnExL2=()=>{alert("handlebtnExL2 is clicked from a parent page.");
extraLargeModal.closeModal()};</script><ModalButtonid={extraLargeModalId}btnName={btnExLName}btnColor={btnExLColor}/><ExtraLargeModalbind:this={extraLargModal}btnColor={btnExLColor}title={titleExL}btn1={btnExL1}btn2={btnExL2}on:handlebtn1={handlebtnExL1}on:handlebtn2={handlebtnExL2}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.
</ExtraLargeModal>