Skip to content

Rating

A star rating: one focusable slider over decorative stars, with half values, hover preview and clearing.

Styled with CSS Tailwind

Half stars

The rating is a single role="slider" (like Bits UI's RatingGroup) named by its aria-label and announced as "3.5 stars". ← / → step by a half with AllowHalf, digits set the value, Home / End go to 0 and the maximum. Hovering previews (data-highlighted); the left half of a star picks a half value; clicking the current value clears it.

Value: 3.5

Read-only

ReadOnly shows and announces a score that can't be changed (aria-readonly).

An unhandled error has occurred. Reload 🗙