Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Star Rating

Five stars that follow the pointer and stay set on click, built on plain radio buttons so arrow keys work too. For a quick review after an appointment or order.

Hoe was uw afspraak bij Kapsalon Mira?

Nog geen keuze gemaakt

How to use it

  1. Paste the HTML where the forms & inputs should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Star Rating · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<form class="str" novalidate>
  <fieldset class="str__veld">
    <legend class="str__vraag">Hoe was uw afspraak bij Kapsalon Mira?</legend>
    <div class="str__rij">
      <input class="str__keuze" type="radio" name="str-cijfer" id="str-c1" value="1"><label class="str__ster" for="str-c1"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.1 14.59 9.04 21.99 9.36 16.18 13.96 18.17 21.09 12 17 5.83 21.09 7.82 13.96 2.01 9.36 9.41 9.04Z"/></svg><span class="str__verborgen">1 van 5, slecht</span></label>
      <input class="str__keuze" type="radio" name="str-cijfer" id="str-c2" value="2"><label class="str__ster" for="str-c2"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.1 14.59 9.04 21.99 9.36 16.18 13.96 18.17 21.09 12 17 5.83 21.09 7.82 13.96 2.01 9.36 9.41 9.04Z"/></svg><span class="str__verborgen">2 van 5, matig</span></label>
      <input class="str__keuze" type="radio" name="str-cijfer" id="str-c3" value="3"><label class="str__ster" for="str-c3"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.1 14.59 9.04 21.99 9.36 16.18 13.96 18.17 21.09 12 17 5.83 21.09 7.82 13.96 2.01 9.36 9.41 9.04Z"/></svg><span class="str__verborgen">3 van 5, redelijk</span></label>
      <input class="str__keuze" type="radio" name="str-cijfer" id="str-c4" value="4"><label class="str__ster" for="str-c4"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.1 14.59 9.04 21.99 9.36 16.18 13.96 18.17 21.09 12 17 5.83 21.09 7.82 13.96 2.01 9.36 9.41 9.04Z"/></svg><span class="str__verborgen">4 van 5, goed</span></label>
      <input class="str__keuze" type="radio" name="str-cijfer" id="str-c5" value="5"><label class="str__ster" for="str-c5"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2.1 14.59 9.04 21.99 9.36 16.18 13.96 18.17 21.09 12 17 5.83 21.09 7.82 13.96 2.01 9.36 9.41 9.04Z"/></svg><span class="str__verborgen">5 van 5, uitstekend</span></label>
    </div>
  </fieldset>
  <p class="str__status" aria-live="polite">Nog geen keuze gemaakt</p>
  <button class="str__knop" type="submit" disabled>Versturen</button>
</form>
</div>

More forms & inputs

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →