Radio Group
A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.
Default
The standard radio group with multiple options and accessible labels.
radio-group-example-default.ts
Card Layout
Radio buttons styled as interactive cards, often used for payment methods or plan selection.
radio-group-example-card.ts
Form
Using Radio Group within an Angular Reactive Form with validation.
radio-group-example-form.ts
API Reference
Brain API
The brain directives provide the functional logic and state management for the radio group.
| Directive | Selector | Inputs / Outputs |
|---|---|---|
| BrnRadioGroup | brn-radio-group, [brnRadioGroup] |
|
| BrnRadio | brn-radio, [brnRadio] |
|
Helm API
The helm directives provide the default spartan/ui styling for the radio group.
| Component / Directive | Selector | Description |
|---|---|---|
| HlmRadioGroup | hlm-radio-group, [hlmRadioGroup] | Main container with grid layout. |
| HlmRadio | hlm-radio | Individual radio item wrapper that handles states and layout. |
| HlmRadioIndicator | hlm-radio-indicator | The visual circle indicator showing the checked state. |