shadow
RadioGroup serves as a container for a group of radio buttons.
Allows users to select one option from a set of options, ensuring that only one radio button within a group is selected at any given time. The component supports the inline attribute, which, when set, arranges the radio buttons in a horizontal layout. In addition, it programmatically manages the value attribute, which reflects the value of the currently selected radio button.
Use wje-radio-group when users need to enter values, choose options, or trigger form-related actions.
Do not use it as a decorative element without interaction. Prefer presentational components in that case.
Always provide a label (label/aria-label), keep keyboard support, and surface clear validation feedback.
- Keep validation rules and error behavior consistent across the entire form.
- Show loading or disabled states during async operations.
- Split complex forms into smaller sections with immediate feedback.
| Description | Getter for the name attribute. |
| Attribute | required |
| Type | boolean |
| Default | - |
| Description | Getter for the value attribute. |
| Attribute | value |
| Type | string |
| Default | - |
| Description | Disables user interaction with the component. |
| Attribute | disabled |
| Type | any |
| Default | - |
| Description | Controls validation or status messaging for invalid. |
| Attribute | invalid |
| Type | boolean |
| Default | false |
| Description | Getter for the label attribute. |
| Attribute | label |
| Type | string|null |
| Default | - |
| Name | Description |
|---|
wje-radio-group:change | Emitted when the component value changes. |
| Description | Returns the radio button with the given value. |
| Signature | (value: string) => Radio |
| Description | Removes the check from all radio buttons. |
| Signature | () => void |
| Description | Sets the given radio button to checked. |
| Signature | (radio: any) => void |
| Description | Retrieves all direct child elements of the current element. |
| Signature | () => HTMLElement[] |
No CSS shadow parts available for this component.
No CSS custom properties available for this component.
| Name | Description |
|---|
default | The default slot for the radio group. |