Rating - Keep React
Table of Contents#
Default Rating#
The "Default Rating" is a pre-configured or initial rating value within the context of a rating component. It represents the default score assigned to an item or content when a user hasn't provided a specific rating.
Rating Types#
You can use your own rating icon to display the rating star.
Value From Rating#
You can access the value from the rating.
Rating API Reference#
Explore the available props for the <Rating>
component
Property | Description | Type | Default |
---|---|---|---|
handleRating | Get value from the rating | function | None |
Star API Reference#
Explore the available props for the <RatingStar>
component
Property | Description | Type | Default |
---|---|---|---|
value | Set value in the rating star | number | 1 |
children | Pass your own icon as children | ReactNode | None |
className | Custom class name | None | |
inputStyle | Custom class name for input styles | None |