@namespace Connected.Components
@inherits UIComponent

@if (ReadOnly)
{
    <span class="@ClassName">
        <Icon Icon="@ItemIcon" Size="@Size"></Icon>
    </span>
}
else
{
    <span class="@ClassName" @onmouseover="HandleMouseOver" @onclick="HandleClick" @onmouseout="HandleMouseOut ">
        <input class="rating-input" type="radio" tabindex="-1" value="@ItemValue" name="@Rating?.Name" disabled="@Disabled" checked="@(IsChecked)" @attributes="CustomAttributes" />
        <Icon Icon="@ItemIcon" Size="@Size"></Icon>
    </span>
}
