@namespace Lumeo

<li role="presentation" aria-hidden="true" class="@CssClass" @attributes="AdditionalAttributes">
    @if (ChildContent is not null)
    {
        @ChildContent
    }
    else
    {
        <Blazicon Svg="Lucide.ChevronRight" class="h-3.5 w-3.5 [dir=rtl]:rotate-180" />
    }
</li>

@code {
    [Parameter] public RenderFragment? ChildContent { get; set; }
    [Parameter] public string? Class { get; set; }
    [Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object>? AdditionalAttributes { get; set; }

    private string CssClass => $"[&>svg]:h-3.5 [&>svg]:w-3.5 {Class}".Trim();
}
