Components

Rating

Rating — a row of stars for capturing or showing a score, such as how a guest rated their stay. Use it for a small, bounded scale (typically five) where the shape carries the meaning at a glance; for longer or non-symbolic scales reach for a slider or a select. It is a controlled input: pass `value` and handle `onChange`, which fires the chosen number. A leading clear input lets someone reset to no rating (`0`), `half` enables half-star precision, and `shape` swaps stars for hearts when you want a favorite rather than a score. Each star is a real radio sharing one group name, so it is keyboard- and screen-reader-friendly.