@namespace Lumeo

<label for="@For" class="@CssClass" @attributes="AdditionalAttributes">
    @ChildContent
</label>

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

    private string CssClass => $"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 {Class}".Trim();
}
