Lumeo

Radio Group

A set of mutually exclusive radio buttons for single-option selection.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<RadioGroup />

When to Use

  • Single selection from a small set of visible options (typically 2-5 choices)
  • Settings and preferences where users need to see all options at once
  • Plan or tier selection cards in pricing pages
  • Notification or display preference toggles within forms

Selected: default

Selected plan: pro

Choose how you want to be notified.

API Reference

RadioGroup

Prop Type Default Description
ChildContentRenderFragment?nullThe radio group content (RadioGroupItem or RadioGroupCard elements).
Valuestring?nullCurrently selected value. Use with @bind-Value.
ValueChangedEventCallback<string>-Callback invoked when the selected value changes.
AriaLabelstring?nullAccessible label for the radio group.
AriaLabelledBystring?nullID of the element that labels the radio group.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.
RequiredboolfalseMarks the field as required for form validation.
InvalidboolfalseApplies error styling to indicate a validation error.
ErrorTextstring?nullError message shown below when Invalid is true (standalone).
HelperTextstring?nullHelp text shown below when there is no error (standalone).
Labelstring?nullInline label rendered above the group (standalone).
Namestring?nullHTML name attribute for form identification.
FormFieldFormFieldContext?nullCascaded context from a parent FormField; drives validation state automatically.

RadioGroupItem

Prop Type Default Description
Valuestring""The value this radio item represents. Required.
DisabledboolfalseDisables the radio item.
Descriptionstring?nullSecondary text shown below the item label.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.

RadioGroupCard

Prop Type Default Description
ChildContentRenderFragment?nullThe card content.
Valuestring""The value this card represents. Required.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.
  • Select — Dropdown selection when the option list is long or space is limited
  • Checkbox — Multi-select when users can choose more than one option
  • ToggleGroup — Compact button-style single selection for toolbar-like UIs