JSFiddle - React, Tailwind, and code Playground

by a22177861

HTML

<div class="form-group row">
    <label for="daytypediv" class="col-2 col-form-label text-right radio">加班⽇類別 :</label>

    <div class="col-10" style="display:flex;">
                <div class="radio">
                    <input type="radio" name="dayType" id="weekday" value="weekday">
                    <label for="weekday">平日</label>
                </div>
                <div class="radio">
                    <input type="radio" name="dayType" id="rest" value="rest">
                    <label for="rest">休息日</label>
                </div>
                <div class="radio">
                    <input type="radio" name="dayType" id="holiday" value="holiday">
                    <label for="holiday">休假日(國定假日)、特休日或例假日</label> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation-circle-fill" viewBox="0 0 16 16">
  <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/>
</svg>
                </div>
                <div class="radio">
                    <input type="radio" name="dayType" id="both" value="both">
                    <label for="both">休息日或例假日且同時為休假日(國定假日)</label>
                </div>
    </div>
</div>