@namespace Lumeo

<tr class="@CssClass" @attributes="AdditionalAttributes">
    @ChildContent
</tr>

@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 => $"border-b border-border/40 transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted {Class}".Trim();
}
