JSFiddle - React, Tailwind, and code Playground

by TJ VanToll

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<div id="dialog"></div>

CSS

.ui-widget-content .red {
    color: red;
}

JavaScript

$( "#dialog" ).dialog({
    buttons: [
        {
            text: "OK",
            "class": "red",
            click: function() {
                $( this ).dialog( "close" );
            }
        }
    ]
});