Rating
Star rating from 0 to max. Optional half-step, read-only mode for displaying aggregated values.
Use Rating for subjective scoring: feedback, reviews, deal-temperature, lead-priority. For exact numeric values use NumberInput or Slider.
Install
Pull from the workspace packages (already available if you ran pnpm add):
Examples
Interactive, read-only, and half-step
value: 3.5
half stars
read-only
Guidelines
✓
Use allowHalf for richer self-rating UIs.Whole-only forces users to round; half-steps reflect intent better.
✓
Use readOnly for aggregated displays (average review score).Hover effects on a non-interactive value confuse users.
✕
Use Rating for binary categorical values.Use Switch or Checkbox.