Rating
Star rating on a radio group: arrow keys, hover preview, and a read-only display mode.
OriginalsDumb extras
Needs the @dumb registry in components.json and the style tokens. See Installation.
API reference
Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.
Rating
| Prop | Type | Default |
|---|---|---|
| value / defaultValueextra | numberControlled or initial rating. | - |
| onValueChangeextra | (value: number) => voidCalled when the rating changes. | - |
| maxextra | numberNumber of stars. | 5 |
| readOnlyextra | booleanStatic display, announced as Rated x out of y. | false |
| sizeextra | "sm" | "default" | "lg"Star size. | "default" |
- ArrowLeftArrowRight
- Changes the rating.