Rating
Stars or hearts that display a score or collect one: a Rating & Review summary, Rating Cells to set a score, a five-step Rating Bar in emoji or numbers, and distribution rows.
Add an Orvain Rating showing 4.5 out of 5 stars, the marks only, no text.
When to use#
- To collect a quick score, such as a review, a support rating or a recommendation.
- Read-only, to show an average next to its count.
When not to use
- Use a Slider for a precise value on a long scale.
Anatomy#
20px stars (#ff9000) or hearts (#ec0d33): outline, twotone, half or solid; empty marks are #f2f2f2.
Five marks, 4.5 ∙ 5.2K Ratings and an 18 reviews link, alone, stacked or in a row.
56px cells with a soft shadow, to collect a score.
A five-step scale in emoji, numbers, stars or hearts.
A label, a 24px track in Figma yellow (#fdda2a) and the share.
States#
Empty marks, or cells at rest.
Cells wash grey and preview the score in #cbcbcb.
Marks fill orange or red; emoji and numbers take a #f2f2f2 cell.
Averages show half marks.
Source#
The Rating ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.
Used in these blocks

