Skip to main content

Radio Button API

Properties
NameTypeDefaultDescription
labelstring—Visible label text next to the radio button.
data-idstring—The id applied to the internal input element.
namestring—Groups multiple radio buttons together and is used when submitting a form.
valuestring—Value of the input.
type"error" | "success" | "warning" | "info"—Applies a semantic style to the radio button.
checkedboolean—Whether the radio button is checked.
disabledboolean—Makes the radio button non-interactive.
Events
EventDescriptionReturns
changeFires whenever the checked state changes via click or keyboard.Change event
clickFires when the input or label is clicked.Click event