Displaying Data

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.

Orvain MCPIncluded with the library

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#

1Marks

20px stars (#ff9000) or hearts (#ec0d33): outline, twotone, half or solid; empty marks are #f2f2f2.

2Rating & Review

Five marks, 4.5 ∙ 5.2K Ratings and an 18 reviews link, alone, stacked or in a row.

3Rating Cell

56px cells with a soft shadow, to collect a score.

4Rating Bar

A five-step scale in emoji, numbers, stars or hearts.

5Progress

A label, a 24px track in Figma yellow (#fdda2a) and the share.

States#

Default

Empty marks, or cells at rest.

Hover

Cells wash grey and preview the score in #cbcbcb.

Selected

Marks fill orange or red; emoji and numbers take a #f2f2f2 cell.

Half

Averages show half marks.

Source#

Preview – final code pending

The Rating is available in the Figma library with every variant and state shown above. The React and Vue source, props table and install command will be added to this page when the code library is released.

Get notified when the source is published

Used in these blocks