Skip to content

VRadio

Props

NameTypeDescription
checkedbooleanThe current checkedness of the element.
connotationEnum:
accent
cta
The connotation the radioButton should have.
default-checkedbooleanThe default checkedness of the element. This value sets the checked property only when the checked property has not been explicitly set.
disabledbooleanSets the element's disabled state. A disabled element will not be included during form submission.
error-textstringProvides a custom error message. Any current error state will be overridden.
initial-valuestringThe default value of the element. This value sets the value property only when the value property has not been explicitly set.
labelstringThe label for the form element.
namestringThe name of the element. This element's value will be surfaced during form submission under the provided name.
readonlybooleanWhen true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly
requiredbooleanRequire the field to be completed prior to form submission.
valuestringThe current value of the element.

Events

NameEvent TypeDescription
changeCustomEvent<undefined>Fires a custom 'change' event when the value changes

Methods

NameTypeDescription
checkValidity() => booleanReturn the current validity of the element.
reportValidity() => booleanReturn the current validity of the element. If false, fires an invalid event at the element.