JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.8/components/button.min.css">
<input type="submit" class="ui big green button" value="This is a long button that should not go off screen" />
<div style="margin-top: 20px;" />
<div class="ui big green button">This is a long button that should not go off screen</div>
CSS
.button { white-space: normal; }