Default Light
MgLibrary
Overview
Installation
Buttons
Cards
Charts
Codes
Data Grids
Dropdowns
Editors
Headers & Animations
Icons
Indicators
Inputs
Lists
Modals
Menus
Panels
Pills & Chips
Scheduling
Tabs
Time Line
Trees
Customization

Rating

Star rating component examples.

Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.

Rating

MgRating

A star rating component that supports fractional hover fills and emits the selected rating via an event.

API Reference

MgRating

Property Type Default Description
Value / bind-Value double 0 Selected rating value; supports fractional values.
Max int 5 Maximum number of stars.
ReadOnly bool false When true, disallows interaction.
An unhandled error has occurred. Reload 🗙