<div><input type="radio" class="radio" name="my_name" id="my_name" checked value="" />
<input type="radio" class="radio" name="my_name" id="my_name" checked value="" />
</div>
<div>
@!jrmc.form.input({ type: 'radio', name: 'my_name', checked: true })
@!jrmc.form.radio({ name: 'my_name', checked: true })
</div>
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 |
Param name | Type | |
---|---|---|
checked | boolean | default check |
disabled | boolean |