Properties used in the Rating component.

Hierarchy

  • RatingProps

Properties

Properties

max?: number

Defines the maximum number of stars, by default it will be 1

Example:

<Rating max={5} />
min?: number

Defines the minimum number of stars, by default it will be 1

Example:

<Rating min={1} />
value: number

Change the value of the Rating component Values will be rounded to the nearest rank

Example:

<Rating value={1.5} />