Components / Rating

Rating

A star rating over the Navius Rating primitive (a radiogroup with roving tabindex and APG radio keyboard). Each star clips a primary fill by state so whole and, with AllowHalf, half values both read. Click or arrow the stars below. This preview is the real component running in WebAssembly.

Examples

Rating: 3.5

razor
<ZitsRating @bind-Value="_value" AllowHalf="true" />

@code { private decimal? _value = 3.5m; }

Installation

Terminal bash
navius add rating

API reference

ZitsRating:

Prop Type Default
Value decimal? null
ValueChanged EventCallback<decimal?> -
DefaultValue decimal? null
Max int 5
AllowHalf bool false
AllowClear bool true
Label Func<decimal, string>? null
ReadOnly / Disabled / Required / Invalid bool false
Name string? null