maxRating | number | 5 | Maximum number of rating stars. |
initialRating | number | 0 | Initial rating value. |
size | number | 24 | Size of each star icon in pixels. |
onChange | (event: React.ChangeEvent<HTMLInputElement>, rating: number) => void | - | Callback fired when the rating changes. |
starColor | string | 'color-mix(in oklab, var(--color-primary) 50%, transparent)' | Color of the filled stars. |
hoverColor | string | 'var(--color-primary)' | Color of stars on hover. |
unratedColor | string | 'var(--color-bg)' | Color of unrated (empty) stars. |
ratingTexts | string[] | defaultRatingTexts | Text labels for each rating value. |
readOnly | boolean | false | If true, disables rating changes (read-only mode). |
icon | ReactNode | - | Custom icon to use instead of default star. |
className | string | '' | Additional CSS classes for the rating component container. |