bloxa

Rating

FREE

Star rating with halves, hover preview, labels, keyboard support and a read-only mode.

Installation

Terminal
npx @bloxa/cli add rating
# or: npx shadcn@latest add @bloxa/rating

Packages installed automatically: motion

Examples

Labels, halves, custom icon, read-only

Good

API reference

Every component also accepts the props of the element it renders.

Rating

PropTypeDefaultDescription
value / onValueChangenumber / (value) => void—Score.
maxnumber5Maximum.
allowHalfbooleanfalseHalf steps.
readOnly / disabledboolean—Read-only / disabled.
labelsstring[]—Text per score.
icon / colorReactNode / stringstar / #f59e0bShape and color.
size"sm" | "md" | "lg""md"Size.