@ChildContent
@if (Unit is not null)
{
@Unit
}
@if (Errors is not null && Key is not null && Errors.TryGetValue(Key, out var error))
{
@error
}
else if (Hint is not null)
{
@Hint
}
@code {
[Parameter, EditorRequired] public required string Label { get; set; }
[Parameter, EditorRequired] public required string For { get; set; }
[Parameter] public string? Unit { get; set; }
[Parameter] public string? Hint { get; set; }
[Parameter] public IReadOnlyDictionary