Rating
Shows or collects a score out of five. Stars are always paired with the number so the value doesn’t rely on colour or shape alone.
Values
Interactive:
<Rating value={4.5} count={128} />
<Rating value={v} onChange={setV} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | — | 0–5. |
count | number | — | Number of ratings. |
onChange | (v) => void | — | Makes it interactive. |