Back to components

Rating

A rating component with star display and interactive selection.

Examples

Interactive & Read-only

Props

PropTypeDefaultDescription
valuenumber0Current rating value
maxnumber5Maximum rating
size"sm" | "md" | "lg""md"Size of the stars
readOnlybooleanfalseWhether the rating is read-only
onChange(value: number) => void-Callback when rating changes