Skip to Content
SmartUI

Rating

One-to-five star rating. Read-only unless onChange is given.

4,6 (128)

Usage

import { Rating } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Asking for or showing a rating.

When not to use

  • Showing an average without the number of ratings.

Props

PropTypeDefaultDescription
valuenumberrequired
onChange(v) => void-Makes it editable.
countnumber-

Accessibility

  • Read as a number: 4.6 out of 5, 128 ratings.

On this page