@namespace Connected.Components
@inherits UIComponent


<span tabindex="@(Disabled?-1:0)" @onkeydown="HandleKeyDown" @attributes="CustomAttributes" class="@ClassName">
    <CascadingValue Value="this" >
        @for (int i = 1; i <= MaxValue; i++)
        {
            <RatingItem Class="@RatingItemsClass" Style="@RatingItemsStyle" ItemValue="@i"
                           DisableRipple="DisableRipple" Disabled="Disabled" ReadOnly="ReadOnly" Color="Color"
                           Size="Size" ItemClicked="HandleItemClicked" ItemHovered="HandleItemHovered"/>
        }
    </CascadingValue>
</span>