StarRating

v3.4.2Edit this page

Displays a visual rating of a product and optionally allows users to rate the product themselves.

Usage

Loading...

Loading examples...

Props

<StarRating>

Name

Description

Type

Default

className

Class on the outer container element.

string

null

label

Label for the stars.

string

null

maxRating

Maximum star rating.

number

5

nerdwallet

Whether this is a "NerdWallet" rating, making the stars green.

bool

false

rating

Current star rating.

number

0

ratingLabels

Object mapping each rating value to its label or a flag indicating to hide the rating labels.

object or

bool

DEFAULT_RATING_LABELS

Maintainers

This component is maintained by the FEI team.

See Also