Skip to main content

Rating

Capture a star rating.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
labelstring-Text above the stars.
Text above the stars.
maxnumber5
iconsRatingIcon[]-
defaultValuenumber-
valuenumber-Controlled rating.
Controlled rating.
onValueChange(value: number) => void-
emptyHintstringClick to rate
scorestring-A figure beside the marks rather than under them: an average, where the marks round it.
A figure beside the marks rather than under them: an average, where the marks round it.
hintstring-
childrenReactNode-Extra content below the hint text, like a feedback field.
Extra content below the hint text, like a feedback field.
disabledbooleanfalseBlocks interaction and dims the stars.
Blocks interaction and dims the stars.
readOnlybooleanfalse
animatedbooleantrue
classNamestring-
focusboolean | stringtrue