Rating
Description
A component for collecting or displaying star ratings
The Rating component lets users express a value judgment on a 1-to-N star scale. It supports interactive selection, read-only display, and custom star counts.
API reference
public sealed class Rating : ComponentBase<Rating, HTMLElement>A star-rating component for collecting or displaying ratings.
Constructors
Properties
public int Value { get ; set ; }Gets or sets the current rating value (0 = unrated).
Methods
public Rating OnChange(Action<int> onChange)Registers a callback for when the value changes.