Star Rating

Android · iOS · Web
The Star Rating component supports showing a rating value out of a max number of stars and allowing users to select the rating if an onClick handler is defined.

Overview

The Star Rating component provides a visual representation of user feedback or item popularity through static display of star icons and numeric ratings.

Live demo

Content
Modifiers

Usage

Do

  • Use a Star Rating component when you want to visually display and convey user feedback, ratings, or reviews for products, services, or content.

  • Use Star Rating to showcase the popularity of items, providing users with a quick visual reference for the overall rating.

  • Opt for a Star Rating component in scenarios where user interaction with the ratings is not required, such as displaying fixed average ratings.

Don't

  • Avoid using a Star Rating component if you need users to actively provide or modify ratings. In such cases, opt for an interactive component.

  • If the goal is to convey complex data comparisons or detailed quantitative information beyond a simple rating, consider using alternative data visualisation components.

Placement

  • Product pages: To showcase average user ratings for a specific product.

  • User reviews: Displaying the fixed average rating for user-generated content.

  • Listings: Providing a quick visual reference for the popularity of items without allowing user input.

Sizes

ExampleSize
Small
Medium
Large

Accessibility

  • Maintain sufficient colour contrast between text and background for readability, especially for users with low vision.