Rating
Choose a labelled score using native radio controls.
HTML
<form><fieldset class="rl-rating"><legend>Rate the delivery</legend><span class="rl-rating-options"><label><input type="radio" name="delivery-rating" value="1" aria-label="1 star"><span aria-hidden="true">★</span></label><label><input type="radio" name="delivery-rating" value="2" aria-label="2 stars"><span aria-hidden="true">★</span></label><label><input type="radio" name="delivery-rating" value="3" aria-label="3 stars"><span aria-hidden="true">★</span></label><label><input type="radio" name="delivery-rating" value="4" aria-label="4 stars" checked><span aria-hidden="true">★</span></label><label><input type="radio" name="delivery-rating" value="5" aria-label="5 stars"><span aria-hidden="true">★</span></label></span></fieldset></form>When adding this fieldset to an existing form, give each independent rating its own field name.
Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-insights.css">
<script defer src="/mero.js"></script>
<script defer src="/mero-insights.js"></script>