Skip to main content

Rating

Rating component allows users to submit feedback and view average scores on a defined scale, reflecting your product, service or experience.

Also known as: Review, Star rating, Feedback
Salt package@salt-ds/core
Available since1.61.0
  • When you have to provide feedback or indicate your level of satisfaction with a product, service, or experience.
  • When there are at least 3 increments—this allows users to express a basic range of sentiment (poor, average, good).
  • When there are more than 10 increments and users need to select an option, use a ComboBox.
  • When there are one or two definitive choices for satisfaction (such as a binary thumbs up/down or like/dislike) rather than collecting a score, consider using Decision button group.
  • Label text should always be on one line.
  • Labels have no character limit, however a maximum of 30 characters is recommended before truncation.

To import Rating from the core Salt package, use:

import { Rating } from "@salt-ds/core";