GitHub

Radio Group

Single-selection group with items binding, enum support, and inline layout.

<rhx-radio-group>

Examples

Basic

Notification Frequency

Pre-selected

Notification Frequency

Enum Binding

Priority

Inline Layout

Size

With Hint

Plan
You can change your plan at any time

Child Options

Color

States

Disabled Group
Small Size

htmx Integration

Pricing Plan
Select a plan to see details...

Properties

Property Type Default Description
rhx-for ModelExpression - ASP.NET Core model expression for two-way binding
name string - The form field name for all radios in the group
value string - The currently selected value
rhx-label string - Group label text
rhx-hint string - Hint text displayed below the group label
rhx-items List<SelectListItem> - Server-side items to render as radio buttons
rhx-inline bool false Display radio buttons in a horizontal row
rhx-size string medium Radio size: small, medium, large
rhx-disabled bool false Whether the entire group is disabled

Accessibility

  • Uses role="radiogroup" with aria-labelledby.
  • Individual radios use native <input type="radio"> with labels.
  • Arrow keys navigate between options within the group.
  • Hint text linked via aria-describedby.