Rating
A rating component with star display and interactive selection.
Examples
Interactive & Read-only
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Current rating value |
max | number | 5 | Maximum rating |
size | "sm" | "md" | "lg" | "md" | Size of the stars |
readOnly | boolean | false | Whether the rating is read-only |
onChange | (value: number) => void | - | Callback when rating changes |