Intro
The rating control is used to indicate an average rating for an object. It also allows for users to set their own rating on a numeric scale from 1 (lowest) to 5 (highest).
Rating controls in compact width (left) and regular width (right)
Anatomy
A. Leading Text (Optional)
The leading text for read-only states describes the average rating value.
B. Rating Controls
The rating controls display the rating of an object.
C. Trailing Text (Optional)
The trailing text describes the average rating value or indicates the total number of ratings.
Rating control anatomy
Behavior and Interaction
When users are enabled to set a rating, the larger interactive type of the rating control should be used. Users can either tap the stars individually or tap or slide their finger horizontally along the stars to select their desired rating.
The small display type can be used in filter form cell buttons to allow users to filter products or objects by rating.
Different uses of rating controls
Rating Control Stars
Rules of showing a full star and a half star
Variations
Read-Only
The read-only variation displays the rating in a large or small read-only format. The flexible sizing is designed to be used with other components such as the data table
or object cell. Additionally, there is an option for accented read-only rating controls to show semantic colors instead of the default color.
Large read-only rating control (top) and small accented read-only rating control (bottom)
Interactive
Editable rating control (top) and disabled rating control (bottom)
Resources
Development: UIKit FUIRatingControl, SwiftUI RatingControl
SAP Fiori for Android: Rating Control
SAP Fiori for Web: Rating Indicator
Human Interface Guidelines: Rating Indicators
Related Components/Patterns: Rating Control Form Cell