JSFiddle - React, Tailwind, and code Playground

HTML

<button class="btn">
  Test
</button>
<div class="btn">
  Test 2
</div>

CSS

.btn {
  width: 100%;
  text-align: center;
  
  text-decoration: underline;
  text-decoration-thickness: 4px;
}