JSFiddle - React, Tailwind, and code Playground
HTML
<div class="customButton"></div>
CSS
.customButton{
display: block;
width: 20px;
height: 20px;
top : 10px;
right : 10px;
position: fixed;
border: 1px solid #000;
border-radius: 10px;
}
.customButton:hover {
background-color: #000;
cursor: pointer;
}