Kodza

Star Rating

Real radio buttons drawn as stars: they light up one after the other under the pointer, the word rolls from Meh to Shipped it, and a static score fills in view.

Forms No dependencies ratingstarsformscore Added Jan 2026
/anim/rating-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.

Add a Kodza Star Rating to my feedback form.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-rating-component.html
<fieldset class="kodza-rating">
  <legend class="kodza-rating__legend">How was the copy-paste?</legend>
  <div class="kodza-rating__stars">
    <input class="kodza-rating__input" type="radio" name="rating" value="1" aria-label="1 star: Meh">
    <input class="kodza-rating__input" type="radio" name="rating" value="2" aria-label="2 stars: Fine">
    <input class="kodza-rating__input" type="radio" name="rating" value="3" aria-label="3 stars: Good">
    <input class="kodza-rating__input" type="radio" name="rating" value="4" aria-label="4 stars: Great">
    <input class="kodza-rating__input" type="radio" name="rating" value="5" aria-label="5 stars: Shipped it">
  </div>
  <p class="kodza-rating__word" aria-hidden="true"><span>Pick a star</span></p>
</fieldset>

<div class="kodza-rating kodza-rating--static" role="img" aria-label="Rated 4.6 out of 5 by 2,148 developers" style="--kz-score: 4.6">
  <span class="kodza-rating__score">4.6</span>
  <span class="kodza-rating__display" aria-hidden="true"></span>
  <span class="kodza-rating__count">2,148 devs, zero bug reports. Mostly.</span>
</div>

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 a star
  • Picks the next star, round and round→/↓
  • Picks the previous star, round and round←/↑
  • Picks the focused starSpace

More like this

More in Forms