Foundation UI
Rating
Star ratings for agents and reviews, as a display or as a form input.
Examples
Display
Set --rating to any value from 0 to 5, including decimals.
Interactive
Radios are written from 5 down to 1 and shown 1 to 5. It works with the keyboard and inside forms.
Classes
| Class | Use |
|---|---|
.rating + --rating | Read-only stars. Sizes .rating-sm (14 px), default (18 px), .rating-lg (24 px). |
.rating-summary | Stars with a number and review count. |
.rating-input | Interactive five-star radio group. |