Performance
PassFrame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.6 KB · Runtime 1.3 KB
unlucky-yak-48MITRadio groupUiverse.io
A radio group built with plain HTML and CSS by aguerquin. Collected from Uiverse.io under the MIT licence and shown here live.
Quality report
The grade and score come from automated checks run at build or test time. If a check did not run, it is marked Not tested — numbers are never invented.
Frame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.6 KB · Runtime 1.3 KB
Issues 0 · Screen reader: Needs attention
No continuous motion
No overflow
Frame rate and long-task figures were measured in headless Chromium with software WebGL. They are only comparable between components on this site, and do not represent real devices.
Not applicable: no visible animation at rest. Hover-triggered animation was not tested.
No axe-core violations.

Checked Nov 15, 2026 · Figures come from an automated script, not from hand-written samples.
Shown at real size.
The copy starts with the licence notice. Keep it when you use the code.
<div class="rating">
<input type="radio" id="star5" name="rate" value="5" />
<label title="Excellent!" for="star5">
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512">
<path
d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"
></path>
</svg>
</label>
<input value="4" name="rate" id="star4" type="radio" />
<label title="Great!" for="star4">
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512">
<path
d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"
></path>
</svg>
</label>
<input value="3" name="rate" id="star3" type="radio" />
<label title="Good" for="star3">
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512">
<path
d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"
></path>
</svg>
</label>
<input value="2" name="rate" id="star2" type="radio" />
<label title="Okay" for="star2">
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512">
<path
d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"
></path>
</svg>
</label>
<input value="1" name="rate" id="star1" type="radio" />
<label title="Bad" for="star1">
<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512">
<path
d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"
></path>
</svg>
</label>
</div>/* From Uiverse.io by aguerquin - Tags: hover, radio, stars, rating */
.rating > label {
margin-right: 4px;
}
.rating:not(:checked) > input {
display: none;
}
.rating:not(:checked) > label {
float: right;
cursor: pointer;
font-size: 30px;
}
.rating:not(:checked) > label > svg {
fill: #666;
transition: fill 0.3s ease;
}
.rating > input:checked ~ label > svg {
fill: #ffa723;
}
.rating:not(:checked) > label:hover ~ label > svg,
.rating:not(:checked) > label:hover > svg {
fill: #ff9e0b;
}
#star1:hover ~ label > svg,
#star1:hover > svg {
fill: #a23c3c !important;
}
#star2:hover ~ label > svg,
#star2:hover > svg {
fill: #99542d !important;
}
#star3:hover ~ label > svg,
#star3:hover > svg {
fill: #9f7e18 !important;
}
#star4:hover ~ label > svg,
#star4:hover > svg {
fill: #22885e !important;
}
#star5:hover ~ label > svg,
#star5:hover > svg {
fill: #7951ac !important;
}
#star1:checked ~ label > svg {
fill: #ef4444;
}
#star2:checked ~ label > svg {
fill: #e06c2b;
}
#star3:checked ~ label > svg {
fill: #eab308;
}
#star4:checked ~ label > svg {
fill: #19c37d;
}
#star5:checked ~ label > svg {
fill: #ab68ff;
}Controls · HTML · CSS · JS
Edit the code and tune it with the controls. The preview updates as you type.

This component runs from a bundled build, so its script is read-only here. Edit the HTML and CSS; the full source is in the Code tab.
Edit every component live, tune it with controls, download the full source and copy the advanced prompts.
$49 one-timePlaceholder price
Test mode: no real payment is taken.
Free: preview, copy buttons and the lesson notes.
Grey stars turn warm orange from the one you pick back to the first, with a title on each star like Excellent or Good.
Product reviews, feedback forms and course ratings.
Change the #ffa723 active fill, the #666 empty fill, the 30px star size and the 0.3s fill transition.
Build a "Five star rating" component in plain HTML, CSS and JavaScript (no framework). Grey stars turn warm orange from the one you pick back to the first, with a title on each star like Excellent or Good. Use it for: Product reviews, feedback forms and course ratings. Expose these controls: Change the #ffa723 active fill, the #666 empty fill, the 30px star size and the 0.3s fill transition. Support light and dark themes, respect prefers-reduced-motion with a still frame, keep text readable and controls keyboard accessible. Write original code; do not copy from paid or restricted component libraries.
A longer prompt with tuning, accessibility and integration steps.