Rating
CoreA simple, accessible way to capture a numeric opinion.
pnpm dlx shadcn@latest add https://wui.alann.works/r/rating.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
label* | string | required |
value | number | — |
defaultValue | number | — |
onChange | (value: number) => void | — |
max | number | — |
readOnly | boolean | — |
disabled | boolean | — |
description | string | — |
size | "sm" | "md" | "lg" | — |
className | string | — |
allowHalf | boolean | — |
allowClear | boolean | — |
showValue | boolean | — |
valueLabels | readonly string[] | — |
emptyLabel | string | — |
name | string | — |