Skip to content

Rating

Stars are filled to the exact value, so 4.6 shows a partly filled fifth star. Screen readers hear one label such as “Rated 4.6 out of 5, 128 reviews”. Use it for reviews of any kind, from a product to a service.

  • value: the score (required)
  • max: number of stars (default 5)
  • count: optional review count shown in brackets
  • showValue: shows the score as a number
  • size: compact, regular (default), large
<Rating value={4.6} count={128} />
Sizes, with showValue