Radio

You must agree to the terms of service to continue.
Attribute Type Documentation Default Value
id :any

HTML id attribute

name :any

HTML name attribute for form submission

value :any

the radio button value

field %FormField{}

a form field struct retrieved from the form

checked :boolean

whether this radio option is selected

false
label :string

text label displayed next to the radio button

size :string

radio button size

"md"
color :string

color variant

"primary"
helper :string

helper text displayed below the radio button

errors :list

list of error messages to display

[]
disabled :boolean

disables the radio button

false
class :any

additional CSS classes for the wrapper

label_class :any

additional CSS classes for the label

radio_class :any

additional CSS classes for the radio input

horizontal :boolean

horizontal layout (label beside input)

false
state :string

validation state (applies form-group-success/warning)

rest :global