Rating

Core

A simple, accessible way to capture a numeric opinion.

pnpm dlx shadcn@latest add https://wui.alann.works/r/rating.json
Component quality

API Reference

PropTypeDefault
label*stringrequired
valuenumber—
defaultValuenumber—
onChange(value: number) => void—
maxnumber—
readOnlyboolean—
disabledboolean—
descriptionstring—
size"sm" | "md" | "lg"—
classNamestring—
allowHalfboolean—
allowClearboolean—
showValueboolean—
valueLabelsreadonly string[]—
emptyLabelstring—
namestring—
Categories
inputs
Dependencies
lucide-reactmotion