JSFiddle - React, Tailwind, and code Playground

by Sukanya Halder

HTML

<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<div id="dialog" title="Basic dialog">
    <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>

CSS

body {
    font-family:"Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
    font-size: 62.5%;
}

JavaScript

$(function () {
      $("#dialog").dialog({
          title: "ABC",
          modal: true, closeOnEscape: true,
          buttons: [{
              text: "Ok",
              icons: {
                  primary: "ui-icon-heart"
              },
              click: function () {
                  $(this).dialog("close");
              }
          }],
          closeText: "hide",
          draggable: true,
          height: 200,
          hide: { effect: "fade", duration: 700 },
          resizable: false,
          show: { effect: "highlight", duration: 800 }
      });
  });