<div><input type="radio" class="radio radio-primary" name="my_name" id="my_name" checked value="" />

    <input type="radio" class="radio radio-secondary" name="my_name" id="my_name" value="" />

    <input type="radio" class="radio radio-accent" name="my_name" id="my_name" value="" />

</div>
<div>
  @!jrmc.form.radio({ name: 'my_name', class: 'radio-primary', checked: true })
  @!jrmc.form.radio({ name: 'my_name', class: 'radio-secondary' })
  @!jrmc.form.radio({ name: 'my_name', class: 'radio-accent' })
</div>

Radio

Doc : daisyui radio

Radio buttons allow the user to select one option from a set.

Class name Type
radio Component For radio input
radio-primary Modifier Adds primary color to radio
radio-secondary Modifier Adds secondary color to radio
radio-accent Modifier Adds accent color to radio
radio-lg Responsive Large radio
radio-md Responsive Medium radio(default)
radio-sm Responsive Small radio
radio-xs Responsive Extra small radio

Specific params

Param name Type
checked boolean default check
disabled boolean