JSFiddle - React, Tailwind, and code Playground

by Vignesh Gopalakrishnan

HTML

<div class="choice-bg">
  <div class="choice-container">
    <div class="choice-wrapper">
      <div class="radio-wrapper">
        <input type="radio" id="report-all" name="pdf-report-choice" value="All">
        <label for="report-all">All</label>
      </div>
      <div class="radio-wrapper">
        <input type="radio" id="report-show" name="pdf-report-choice" value="Show">
        <label for="report-show">Show</label>
      </div>
      <div class="radio-wrapper">
        <input type="radio" id="report-selected" name="pdf-report-choice" value="Selected">
        <label for="report-selected">Selected</label>
      </div>
      <div class="download-option">
        <button id="download-report">
          Download
        </button>
      </div>
    </div>
  </div>
</div>

CSS

.choice-bg {
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin: 0px;
  padding: 0px;
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.choice-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  position: relative;
}

.choice-wrapper {
  width: auto;
  border: 1px solid blue;
  background: white;
}