12 lines
649 B
Plaintext
12 lines
649 B
Plaintext
@inherits DComponentBase
|
|||
|
|
|
||
|
|
@* daisyUI Validator: https://daisyui.com/components/validator/ . Place it right after a field with Validator set (a
|
||
|
|
following sibling): it shows, in the error color, while that field is :user-invalid or aria-invalid (failed
|
||
|
|
EditForm validation). *@
|
||
|
|
<p @attributes="AdditionalAttributes" class="@Cx("validator-hint", Compact ? "hidden" : null, Class)">@ChildContent</p>
|
||
|
|
|
||
|
|
@code {
|
||
|
|
[Parameter] public RenderFragment ChildContent { get; set; }
|
||
|
|
/// <summary>Takes no space while the field is valid (daisyUI's validator-hint hidden) instead of keeping its line.</summary>
|
||
|
|
[Parameter] public bool Compact { get; set; }
|
||
|
|
}
|