Skip to main content

Radio Button API

Properties
NameTypeDefaultDescription
labelstringVisible label text next to the radio button.
data-idstringThe id applied to the internal input element.
namestringGroups multiple radio buttons together and is used when submitting a form.
valuestringValue of the input.
type"error" | "success" | "warning" | "info"Applies a semantic style to the radio button.
checkedbooleanWhether the radio button is checked.
disabledbooleanMakes 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