Ratings Stars show the current rating for a product, on a scale of 1 to 5.
Usage
The rating itself can have one decimal place, e.g. a rating of 3.4.
The preview has been updated.
Reviews
You can add a reviews count and link to RatingsStars by setting the reviews and href props.
The preview has been updated.
Hide Rating
Use hideRating to conceal the numeric score (e.g. "4.5"), displaying only the visual star glyphs. Accessible text remains intact via the automatic aria-label.
The preview has been updated.
"monochromatic" skin
The "monochromatic" skin turns the stars black -- or white when using dark mode. This is intended for use only when the stars are shown on top of a light-colored background such as a hero or banner.
The preview has been updated.