Rating
A row of radio buttons drawn as stars that fill up to the chosen one.
| Name | Type | What it does |
|---|---|---|
rating | component | Container for the radio inputs. The checked one and all before it are lit |
rating-primary | colour | Tints it with the primary colour |
rating-secondary | colour | Tints it with the secondary colour |
rating-success | colour | Tints it with the success colour |
rating-warning | colour | Tints it with the warning colour |
rating-danger | colour | Tints it with the danger colour |
Star rating
<div class="rating">
<input type="radio" name="rating-demo" aria-label="1 star">
<input type="radio" name="rating-demo" aria-label="2 stars">
<input type="radio" name="rating-demo" aria-label="3 stars">
<input type="radio" name="rating-demo" aria-label="4 stars" checked>
<input type="radio" name="rating-demo" aria-label="5 stars">
</div>Coloured
<div class="rating rating-primary">
<input type="radio" name="rating-demo-2" aria-label="1 star">
<input type="radio" name="rating-demo-2" aria-label="2 stars" checked>
<input type="radio" name="rating-demo-2" aria-label="3 stars">
<input type="radio" name="rating-demo-2" aria-label="4 stars">
<input type="radio" name="rating-demo-2" aria-label="5 stars">
</div>