Shows a static rating of a service such as a hotel.
When to use
- To display static ratings for services such as hotels.
- To display the results of previously collected ratings.
When not to use
- To collect ratings or other interactions—use button links.
Make clear what’s being rated
Rating stars automatically come with an aria label to describe the rating in words for those who might not see the visual cues. Use the context to make sure that it’s clear what the rating covers even if a user doesn’t see the stars.
Look & feel
Ratings stars can be small, medium, or large.
The color (based on text colors) can be primary or secondary.