@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? Errors { get; set; } [Parameter] public string? Key { get; set; } [Parameter] public bool Wide { get; set; } [Parameter] public RenderFragment? ChildContent { get; set; } }