JSFiddle - React, Tailwind, and code Playground
HTML
<button id="opener">open the dialog</button>
<div id="draggable"></div>
CSS
#able {
cursor: pointer;
width:100px;
height:100px;
}
#draggable {
cursor: pointer;
width:100px;
height:100px;
overflow:auto;
}
JavaScript
$(document).ready( function () {
$("#draggable").dialog({ autoOpen:false, modal: true, width:1020, height:550 });
$("#opener").click( function () {
$("#draggable").dialog("open");
$("#draggable").load("http://www.wikipedia.org");
});
});