NullCssClass Attribute

Only available for parameter when value is null

[Parameter][NullCssClass("invalid")]public string? Text { get; set; }
<Component />
<div class="invalid"></div>

<Component Text="Hello" />
<div></div>

Last updated