@namespace Wabbajack.App.Blazor.Components
@code {
// TODO: [Low] Implement parameters to customize style.
[Parameter]
public string? Label { get; set; }
[Parameter]
public bool IsChecked { get; set; }
[Parameter]
public EventCallback IsCheckedChanged { get; set; }
private async Task CheckBoxChanged(ChangeEventArgs e)
{
if (e.Value is not bool newValue) return;
if (IsChecked == newValue) return;
IsChecked = newValue;
await IsCheckedChanged.InvokeAsync(IsChecked);
}
}