Showcase

RatingInput

This documentation provides a comprehensive reference for the RatingInput component, guiding you through its configuration options.
Demos

Screenshot #

Blazor RatingInput Component

Parameters #

Name Type Default Required Description Added Version
AdditionalAttributes Dictionary<string, object>? null Gets or sets additional attributes that will be applied to the component. 4.1.0
AllowClear bool False Gets or sets whether clicking the currently selected item clears the value to empty (null for nullable types, 0 otherwise). 4.1.0
AllowHalf bool False Gets or sets whether half values can be selected. Supported only for decimal and decimal? values. 4.1.0
Class string? null Gets or sets the CSS class name(s) to apply to the component. 4.1.0
Color RatingInputColor Warning Gets or sets the color of the rating icons. 4.1.0
Disabled bool False Gets or sets whether the rating input is disabled. When true, users cannot focus or change it. 4.1.0
EmptyIconName IconName Star Gets or sets the icon used for empty items. 4.1.0
FilledIconName IconName StarFill Gets or sets the icon used for filled items. 4.1.0
HalfIconName IconName StarHalf Gets or sets the icon used for half-filled items when a fractional value is displayed. 4.1.0
Id string? null Gets or sets the ID. If not set, a unique ID will be generated. 4.1.0
ItemLabelFormat string {0} of {1} Gets or sets the format of each item's accessible label and of the value description. Placeholder {0} is the item value and {1} is the maximum value. 4.1.0
MaxValue int 5 Gets or sets the number of rating items. Must be greater than or equal to 1. 4.1.0
ReadOnly bool False Gets or sets whether the rating input is read-only. When true, the value is displayed, including half values, and cannot be changed. 4.1.0
Size RatingInputSize Default Gets or sets the size of the rating icons. 4.1.0
Style string? null Gets or sets the CSS style string that defines the inline styles for the component. 4.1.0
Value object? null Gets or sets the current rating value. 4.1.0
ValueExpression Expression<Func<object?>> null Gets or sets the expression that identifies the bound value for validation and EditContext notifications. 4.1.0

Events #

Name Return Type Description Added Version
ValueChanged EventCallback<object?> Fires once whenever user interaction changes the rating value. It does not fire when the component is read-only or disabled. 4.1.0

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.