Inputs
RadioGroup
A group of radio buttons with keyboard navigation. The group handles arrow key navigation and value management.
LlmRadioGroup + LlmRadioDemo
Live PreviewReact
jsx
<LlmRadioGroup name="plan" value="free" onValueChange={(v) => console.log(v)}>
<LlmRadio radioValue="free">Free</LlmRadio>
<LlmRadio radioValue="pro">Pro</LlmRadio>
<LlmRadio radioValue="enterprise">Enterprise</LlmRadio>
</LlmRadioGroup>API (Angular)
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '' | Currently selected value |
onValueChange | (value: string) => void | — | Called when selection changes |
disabled | boolean | false | Disables all radios in the group |
readonly | boolean | false | Makes all radios in the group read-only |
invalid | boolean | false | Applies invalid/error styling |
required | boolean | false | Marks field as required |
name | string | '' | HTML name attribute (propagated to radios) |
Composition parts
RadioGroup is composed from the parts below. Each part is its own component — drop the ones you don't need.
LlmRadio
An individual radio button. Place inside LlmRadioGroup — the group manages the checked state.
| Prop | Type | Default | Description |
|---|---|---|---|
radioValue | string | — | Value this radio contributes when selected (required). |
disabled | boolean | false | Disable this radio only. |
Import
ts
import { LlmRadioGroup, LlmRadio } from '@atelier-ui/angular';Accessibility
ARIA roleradiogroup
| Key | Action |
|---|---|
| Tab | Move focus into the group (to the checked radio, or the first radio if none is checked). |
| Arrow Up / Left | Select the previous radio, wrapping to the last. |
| Arrow Down / Right | Select the next radio, wrapping to the first. |
| Space | Select the focused radio. |
- Only the currently selected radio is in the tab sequence (roving tabindex) — the whole group is one tab stop.
- If you supply a label via <label> or aria-labelledby on the group, screen readers announce it when focus enters.
See the accessibility overview for the site-wide WCAG stance.