BooleanCssClass Attribute

The attribute available for bool type of parameter

[Parameter][BooleanCssClass("trueCss", "falseCss")]public bool? Active { get; set; }
<Component />
<div></div>

<Component Active />
<div class="trueCss"></div>

<Component Active="false" />
<div class="falseCss"></div>

Last updated