bit Bheadless

Radio Group

An accessible single-select group with roving tabindex and full keyboard support.

Implementation: CSS Tailwind

Basic Radio Group

Click a radio or use Up / Down arrow keys (Left / Right when horizontal) to navigate and select. Disabled radios are skipped. aria-checked, role="radiogroup", and role="radio" are wired automatically.

Horizontal Orientation

Set Vertical="false" to lay radios out horizontally. Arrow-key navigation switches to Left / Right and the group emits data-orientation="horizontal" for CSS hooks.

Disabled Radio

Set Disabled="true" on individual radios. Arrow-key navigation skips disabled options. Set Disabled="true" on the root group to disable everything at once.

Card-style options

Because the radio is the only interactive element, you can place rich content (titles, descriptions, prices) inside the <label> wrapper and use the data-state="checked" hook to highlight the selected card.

Controlled

Drive selection externally with Value and OnValueChange.

Selected: green

Form Submission

Set Name on the group to render a hidden <input> carrying the selected value, so plain HTML form posts include the group's selection.

An unhandled error has occurred. Reload 🗙