Radio
Use radio buttons to let the user select one option.
Class names
- component:
radio - color:
radio-neutral,radio-primary,radio-secondary,radio-accent,radio-success,radio-warning,radio-info,radio-error - size:
radio-xs,radio-sm,radio-md,radio-lg,radio-xl
Syntax
<input type="radio" name="{name}" class="radio {MODIFIER}" />
Rules
{MODIFIER}is optional. It can include one size class name and one color class name.- Replace
{name}with a name for the radio group. - Recommendation: Use a unique
nameattribute for each radio-input group. This prevents conflicts with other groups on the same page.