Rating
Star rating component
Interactive star rating input.
Usage
Readonly
Display only, no interaction:
Custom max
Change maximum stars:
Controlled
Fully controlled with state:
Form integration
Works with form libraries:
Props
| prop | type | default | description |
|---|---|---|---|
| value | number | 0 | Current rating |
| max | number | 5 | Maximum stars |
| onChange | (value: number) => void | - | Change callback |
| readonly | boolean | false | Disable interaction |