MudBlazor

MudRating API

Pages

Properties

Name Type Default Description
Color
Color

Color.Default

The color of the component. It supports the theme colors.
Disabled
Boolean

False

If true, the controls will be disabled.
DisableRipple
Boolean

False

If true, disables ripple effect.
EmptyIcon
String
Non selected item icon. Default @Icons.Material.StarBorder
FullIcon
String
Selected or hovered icon. Default @Icons.Material.Star
MaxValue
Int32

5

Max value and how many elements to click will be generated. Default: 5
Name
String

"104a1796-527c-4b27-a9a7-53eb022b89ac"

Input name. If not initialized, name will be random guid.
RatingItemsClass
String

null

User class names for RatingItems, separated by space
RatingItemsStyle
String

null

User styles for RatingItems.
ReadOnly
Boolean

False

If true, the ratings will show without interactions.
SelectedValue
Int32

0

Selected value. This property is two-way bindable.
Size
Size

Size.Medium

The Size of the icons.
Inherited from MudComponentBase
Class
String

null

User class names, separated by space.
Style
String

null

User styles, applied on top of the component's own classes and styles.
Tag
Object

null

Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<String, Object>

UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.

EventCallbacks

Name Type Description
HoveredValueChanged
EventCallback<Nullable<Int32>>
Fires when hovered value change. Value will be null if no rating item is hovered.
SelectedValueChanged
EventCallback<Int32>
Fires when SelectedValue changes.
An error has occurred. This application may no longer respond until reloaded. Reload 🗙