bel&gt;&lt;input type="radio" name="rating" @onchange="On5StarsSelected" /&gt;*****&lt;/label&gt;
    &lt;label&gt;&lt;input type="radio" name="rating" /&gt;****&lt;/label&gt;
    &lt;label&gt;&lt;input type="radio" name="rating" /&gt;***&lt;/label&gt;
    &lt;label&gt;&lt;input type="radio" name="rating" /&gt;**&lt;/label&gt;
    &lt;label&gt;&lt;input type="radio" name="rating" /&gt;*&lt;/label&gt;
&lt;/div&gt;

@code {
    [Parameter]
    public EventCallback On5StarsSelected { get; set; }
}</pre>
<p>In 