Components/RatingInput

RatingInput

Star rating picker with hover preview and read-only display mode.

Installation

Examples

Interactive rating

Hover to preview, click to set.

4 / 5
Excellent
128
Good
62
Average
8

API Reference

PropTypeDefaultDescription
valuenumber0Controlled rating value.
onChange(v: number) => voidCalled when rating changes.
maxnumber5Maximum number of stars.
readOnlybooleanfalsePrevents interaction.
size'sm'|'md'|'lg''md'Controls star size.
disabledbooleanfalseDisables the rating input.