JSFiddle - React, Tailwind, and code Playground
CSS
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="http://github.hubspot.com/vex/js/vex.js"></script>
<script src="http://github.hubspot.com/vex/js/vex.dialog.js"></script>
<link href="http://github.hubspot.com/vex/css/vex.css" rel="stylesheet" />
<link href="http://github.hubspot.com/vex/css/vex-theme-default.css" rel="stylesheet" />
<style>
JavaScript
vex.dialog.prompt({
className: 'vex-theme-default',
message: 'Set your email:',
// By specifying type="email" and making it required, only valid emails will be allowed to be submitted
input: '<input name="vex" type="email" class="vex-dialog-prompt-input" placeholder="[email protected]" value="" required>'
});