Comparison: Native vs. Focusgroup

Side-by-side comparison showing that a focusgroup radio group can behave identically to native <input type="radio">.

Try it: Use to navigate in both groups. Toggle the switch on the right to match native radio behavior, where selection follows focus.

Native Radio Buttons

Favorite color


Focusgroup Radio Group

Red Green Blue Purple
View source
<div focusgroup="radiogroup" aria-label="Favorite
     color">
    <span class="radio-option checked" aria-checked="true" tabindex="0"
         focusgroupstart>Red</span>
    <span class="radio-option" aria-checked="false"
         tabindex="0">Green</span>
    <span class="radio-option" aria-checked="false"
         tabindex="0">Blue</span>
    <span class="radio-option" aria-checked="false"
         tabindex="0">Purple</span>
</div>

Key Point: Navigation ≠ Selection

With native <input type="radio">, moving focus with arrows also selects the option. With focusgroup, navigation and selection are decoupled by default. You can add selection-follows-focus behavior in JavaScript (toggle the switch above to see it), or require an explicit Enter/Space to confirm — giving you more flexibility.