Skip to Content
Forms & Inputs@hacline/ui/rating

Rating

Pick full-star or half-star ratings.

Usage

Hover to preview values. This example uses step={0.5}, and also supports arrow-key focus movement with Space to select.

Rating 3.5 / 5

Read-Only Average Display

Set readOnly to present an aggregate average score that prevents edits.

4.2 / 5 from 18 reviews

Parts

PartDescription
RatingItem
One star. Put its icon inside: the state says how full it is, and the radios that pick its score sit over it.

Props

Prop

Type

View UI SDK parts and state attributes.