Skip to content

Rating

<bh-rating> | BharatRating

The Rating component displays interactive or read-only star-based rating controls with support for half-stars, customizable icons, styles, and colors.

Basic Usage

Custom Value and Max Value

Sizes

Customisation

Precision

Read-Only Rating


Properties

PropertyTypeDescription
value numberCurrent rating value
maxValuenumberMaximum possible rating value
sizestringOne of "small", "medium", "large"
colorstringCustom star fill color
readonlybooleanPrevents changes if true
precisionnumberRating step granularity (e.g., 1 or 0.5)
labelstringOptional label text before stars