JSFiddle - React, Tailwind, and code Playground

by ecartdk

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css">
<input /><button>test</button>

CSS

.my-textfield {
    font: inherit;
    color: inherit;
    text-align: inherit;
    outline: none;
    cursor: text;
}

JavaScript

$('input:text, input:password, input[type=email]')
    .button().addClass('my-textfield');
$('button')
    .button().addClass('my-textfield');