JSFiddle - React, Tailwind, and code Playground

HTML

<div class="form-check">
  <input class="form-check-input" type="checkbox" id="confirm-checkbox" required="">
  <label class="form-check-label" for="confirm-checkbox">
    <strong>I confirm</strong>
  </label>
</div>

<br>
<br> 

<input type="file" name="my_file" required />

CSS

.disabled, input:read-only {
    pointer-events: none;
}