Radio Group
Formsatlas-radio-groupExamples
Vertical and horizontal
Options are data; bind [(value)] . Use orientation="horizontal" for short lists.
Selected: default
Required, in a form field
In atlas-form-field the field label names the radio group. Bound with [formField] , it reports required and shows the error once the form is submitted.
Disabled options
A disabled option stays visible with its reason, and the arrow keys skip it.
Billing: monthly
API
Generated from the library source, so it always matches the code.
AtlasRadioGroupComponent atlas-radio-group
| Input | Type | Default | Description |
|---|---|---|---|
| options required | RadioOption[] | — | disabled options cannot be chosen. |
| value two-way | string | '' | value ; '' when none is chosen (two-way, or Signal Forms [field] ). |
| disabled | boolean | false | [field] . |
| errors | readonly ValidationError.WithOptionalFieldTree[] | [] | [field] . |
| required | boolean | false | [field] . |
| invalid | boolean | false | [field] . |
| touched | boolean | false | [field] . |
| readonly | boolean | false | [field] . |
| pending | boolean | false | [field] . |
| name | string | '' | [field] . |
| orientation | 'horizontal' | 'vertical' | 'vertical' | vertical ) or lays them out in a row ( horizontal ). |
| ariaLabel | string | null | null | |
| inputId | string | undefined | undefined | id of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one. |
| ariaDescribedBy | string | null | null | aria-describedby , merged with the surrounding form field's hint or error. |
| class | string | '' | cn() ; yours win on conflicts. |
| Output | Payload | Description |
|---|---|---|
| touch | void |
Types
RadioOption
| Property | Type | Description |
|---|---|---|
| value | string | |
| label | string | |
| disabled? | boolean |