Radio Button API

API Reference e-radio

Properties

Name Description Type Required Default value
label Adds label to the radio button string
data-id The id of the input component inside string
name The name how the element will be posted in forms, also groups multiple radio buttons string
value The value of the input string
type Adds semantic style to the radio button enum: [error, success, warning, info]
checked Whether the input is checked boolean
disabled If the input is interactive or not boolean

Events

Event Description Returns
change Fires on clicking or keyboard select whenever the checked state changes Change event
click Fires on clicking the input or the label Click event