Rating
One-to-five star rating. Read-only unless onChange is given.
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
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | required | |
onChange | (v) => void | - | Makes it editable. |
count | number | - |
Accessibility
- Read as a number: 4.6 out of 5, 128 ratings.