skills/daisyui/components/rating.md
Rating is a set of radio buttons that allow the user to rate something
ratingrating-half, rating-hiddenrating-xs, rating-sm, rating-md, rating-lg, rating-xl<div class="rating {MODIFIER}">
<input type="radio" name="rating-1" class="mask mask-star" />
</div>
For a read-only (non-interactive) rating, use <div> elements instead of radio inputs and mark the selected one with aria-current="true":
<div class="rating">
<div class="mask mask-star" aria-label="1 star"></div>
<div class="mask mask-star" aria-label="2 star" aria-current="true"></div>
<div class="mask mask-star" aria-label="3 star"></div>
</div>
name attributes to avoid conflicts with other ratings on the same pagerating-hidden for the first radio to make it hidden so user can clear the rating<div> elements instead of the radio inputs and mark the selected one with aria-current="true"