To bind clicked element to desired modal, we need to set the same id for the clicked element and the Modal (ex Modal(id="modal-1")) . Also the clicked element needs to have '_modal-show-trigger' class name to show the modal or '_modal-hide-trigger' to hide the modal