Bool Icon

Tag Helper <bool-icon /></bool-icon>

Creates a visual green Tick for boolean values of true and blank for false.

Properties

bool asp-for

The model bound boolean field to use to create the tick or not.

bool value

The boolean value to use to create the tick or not if not model bound.

bool show-false

Show a false icon if true.

string? true-class

Override the class used for true.

string? false-class

Override the class used for false.

bool-icon

Razor
<bool-icon asp-for="MyFieldId"></bool-icon>
<bool-icon value="True"></bool-icon>