Kodza

Radio

Real radio buttons with one dot for the whole group: pick another option and the dot travels to it, stretching on the way like a drop of ink.

Forms No dependencies radioformcardschoice Added Oct 2025
/anim/radio-component/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Restyle my plan choice with Kodza Radio buttons.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-radio-component.html
<fieldset class="kodza-radio">
  <legend class="kodza-radio__legend">Shipping speed</legend>
  <label class="kodza-radio__item">
    <input class="kodza-radio__input" type="radio" name="speed" value="whenever">
    <span class="kodza-radio__ring" aria-hidden="true"></span>
    <span class="kodza-radio__text">Whenever<small>We will get to it. Probably.</small></span>
  </label>
  <label class="kodza-radio__item">
    <input class="kodza-radio__input" type="radio" name="speed" value="week" checked>
    <span class="kodza-radio__ring" aria-hidden="true"></span>
    <span class="kodza-radio__text">This week<small>Two to three business days.</small></span>
  </label>
  <label class="kodza-radio__item">
    <input class="kodza-radio__input" type="radio" name="speed" value="yesterday">
    <span class="kodza-radio__ring" aria-hidden="true"></span>
    <span class="kodza-radio__text">Yesterday<small>Physically impossible. We tried.</small></span>
  </label>
</fieldset>

<fieldset class="kodza-radio kodza-radio--cards">
  <legend class="kodza-radio__legend">Framework</legend>
  <label class="kodza-radio__item">
    <input class="kodza-radio__input" type="radio" name="framework" value="none" checked>
    <span class="kodza-radio__ring" aria-hidden="true"></span>
    <span class="kodza-radio__text">None<small>Bold choice.</small></span>
  </label>
  <label class="kodza-radio__item">
    <input class="kodza-radio__input" type="radio" name="framework" value="vanilla">
    <span class="kodza-radio__ring" aria-hidden="true"></span>
    <span class="kodza-radio__text">Vanilla<small>Same thing.</small></span>
  </label>
  <label class="kodza-radio__item">
    <input class="kodza-radio__input" type="radio" name="framework" value="plain">
    <span class="kodza-radio__ring" aria-hidden="true"></span>
    <span class="kodza-radio__text">Plain JS<small>Still the same.</small></span>
  </label>
</fieldset>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.
KeyboardPress them in the preview
On an option
  • Picks the next option, round and round↓/→
  • Picks the previous option, round and round↑/←

More like this

More in Forms