AppRadioGroup
Pick one of a few options (APG Radio Group). Native radio inputs in a <fieldset> with a <legend>, so the group has one Tab stop, the arrow keys move and select, and screen readers announce "2 of 3" without any script. Each option can carry a description; the error is linked to every radio with aria-describedby.
Install: pnpm add-component AppRadioGroup
Basic usage
Tab into the group, then use the arrow keys. A disabled option is skipped.
Horizontal
Error
The message says how to fix the problem. In AppForm, type: "radio" fills it from the schema.
API
modelValue(string | number): The selected value (use v-model). Nothing is selected while it matches no item.items(RadioItem[]): { label, value, description?, disabled? } for each option.label(string): The legend, which names the group.orientation('vertical' | 'horizontal'): Stack the options or set them in a wrapping row. The arrow keys work either way.error(string): Shown below the group with an icon; the radios get a danger edge, aria-invalid and aria-describedby.disabled(boolean): Disables the whole fieldset. Single items take disabled in items.name(string): The native name, for a form that posts without JavaScript.