interface QRadioProps extends HTMLAttributes<HTMLLabelElement>
disabled?: boolean = falselabel?: string = ""name?: string = undefinedselected?: QRadioValue = $bindable(undefined)
value: QRadioValue = ""
value, share a name, and use the same bind:selected value for the group. Generate options with an each block. onchange responds to user selection; assigning the bound value updates the
group without firing it.Choose an option to see its change event.
Selected value: 1h
preserveTabOrder on the list to keep native radio
keyboard navigation. disabled marks unavailable choices or a fixed selection.Selected value: 4 (number)
This selection is fixed and cannot be changed.
false and true are valid radio values. Use Quaff's flex and gap helpers to arrange short choices horizontally; they wrap when space
is limited.Selected value: false (boolean)
name is also the form field name. Only the checked, enabled radio is submitted. FormData reads its value as a string, even when the bound value is a number or boolean.Group related radios in a fieldset with a legend. Give each option
a visible label and share a name within the group.
Tab enters or leaves a group; arrow keys move focus and select an option. Space selects the focused radio; Enter does not select it. Disabled options are skipped. Keep focus indicators visible and avoid nested interactive controls.