@inherits RadzenComponent
@if (Visible)
{
    <li class=@ItemClass role="menuitem" tabindex="@(Disabled ? "-1" : "0")" aria-disabled="@(Disabled ? "true" : "false")"
        @onclick="@OnClick" @onkeydown="OnKeyDown" @attributes="Attributes" style="@Style">
        <span id="@(SplitButton?.SplitButtonId() + GetHashCode())" class="rz-menuitem-link">
            @if (!string.IsNullOrEmpty(Icon))
            {
                <span class="rz-menuitem-icon" style="@(!string.IsNullOrEmpty(IconColor) ? $"color:{IconColor}" : null)">@Icon</span>
            }
            @if (!string.IsNullOrEmpty(Text))
            {
                <span class="rz-menuitem-text">@Text</span>
            }
        </span>
    </li>
}