Lumeo

Rating

A star rating input for collecting feedback.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Rating />

When to Use

  • Product or service reviews where users submit star ratings
  • Feedback forms for satisfaction or experience scoring
  • Displaying average ratings in read-only mode on product cards
  • Any scenario requiring a quick visual numeric rating (e.g., difficulty, quality)

Value: 3.5

Pick a size to see the star scale live.

Size: Default — Value: 3

API Reference

Rating

Property Type Default Description
Valuedouble0Current rating value.
Maxint5Maximum number of stars.
AllowHalfboolfalseEnable half-star precision.
ReadOnlyboolfalseDisable user interaction.
SizeRatingSizeDefaultStar size. Values: Small, Default, Large.
IconRenderFragment?nullCustom icon replacing default stars.
ValueChanged EventCallback<double> Two-way binding callback; fires when the rating changes.
IconContent RenderFragment? null Custom icon slot used for each rating unit.
ErrorText string? null Error message displayed below the rating when Invalid is true.
HelperText string? null Helper text shown below the rating when not invalid.
Invalid bool false Applies error styling. Syncs with a parent FormField.
Label string? null Label rendered above the rating (standalone, without FormField).
Name string? null HTML name attribute for form submission.
Required bool false Marks the field as required. Syncs with a parent FormField.
  • Slider — Continuous range input when discrete star levels are insufficient
  • Progress — Display a score or completion percentage as a bar
  • Input — Free-form numeric input for precise rating values