JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.22/themes/base/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
.ui-icon-grid_mybutton {
background-image: url(http://www.fileden.com/files/2012/6/19/3318010/Ok.png) !important;
width: 16px;
height: 16px;
}
JavaScript
$(function() {
$("#dialog").dialog();
});
var myIcon = '<span class="ui-icon ui-icon-grid_mybutton">close</span>';
$('div.ui-dialog-titlebar').append(myIcon);