© 2026 Hedgehog Software, LLC
<Checkbox @bind-Value="@CheckboxValue" /> <span>@(CheckboxValue)</span> @code { bool CheckboxValue { get; set; } }
@inherits InputCheckbox <input type="checkbox" @attributes="@AdditionalAttributes" @bind="@(Value)" @bind:event="onchange" class=@Tw([ "appearance-none cursor-pointer text-center text-sm peer border-input dark:bg-input/30 checked:bg-primary not-checked:text-transparent ph ph-check checked:text-primary-foreground dark:checked:bg-primary checked:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", CssClass, AdditionalAttributes?.GetValueOrDefault("class")?.ToString() ])/>
Join the Discord to ask follow-up questions and connect with the community
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470 Members