Use for selecting exactly one option from a small set of choices.
The q2-radio-group element has one slot that can be used to insert custom content into the component.
An optional slot to display a custom label.
The q2-radio-group element has one or more properties that support text localization. Those properties are indicated by the localizable badge in the description.
disabledDetermines if all radios in the group are put into a disabled state.
hasErrorhas-errorDetermines if the component should display in an errant state.
hideLabelhide-labelHide's the group's <label> element from view.
Only use when a visible label is impractical.
labelText for the fieldset legend describing the radio group.
nameIdentifier which ties all radios together for accessibility and DOM selection.
optionalAppends "(optional)" to the group label, and sets aria-required on the nested input tag to false.
readonlyDetermines if all radios in the group can be focused, but not interacted with.
tileAlignmenttile-alignmentProvides alignment direction for tile-style radio group.
tileLayouttile-layoutShow the radio group as a horizontal set of tiles.
valueThe value of the currently selected q2-radio within the q2-radio-group.
The q2-radio-group element exposes events that can be used to send and receive data from the component based on user interaction.
Emitted when the value of the radio group changes.
{ value: string; }If an event handler is bound to the element using:
onchange property - The default handler will not fire, and the value must be updated in the custom handler.addEventListener("change") method - The default handler will fire alongside the custom handler.Emitted when the value of the radio group changes.
{ value: string; }If an event handler is bound to the element using:
ontctChange property - The default handler will not fire, and the value must be updated in the custom handler.addEventListener("tctChange") method - The default handler will fire alongside the custom handler.The q2-radio-group element exposes methods that can be used to perform various actions on the component.
Emulates clicking the <q2-radio> option with the provided value.
setValue(value: string) => Promise<void>The following CSS variables are available to override the default theme styles of the q2-radio-group component.
Many Tecton components consume other components to maintain visual and functional consistency. If you are looking for a CSS variable you think should exist but are not seeing it, it may be defined in one of the dependent components below. Either way, if you think it's something we should expose more conveniently, let us know!