Installation
Examples
Interactive rating
Hover to preview, click to set.
4 / 5
Excellent
128
Good
62
Average
8
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | 0 | Controlled rating value. |
| onChange | (v: number) => void | — | Called when rating changes. |
| max | number | 5 | Maximum number of stars. |
| readOnly | boolean | false | Prevents interaction. |
| size | 'sm'|'md'|'lg' | 'md' | Controls star size. |
| disabled | boolean | false | Disables the rating input. |