Basic usage
Use two-way binding @bind-Toggle="..."
to update a bound value in the parent component.
Alarm is Off
<MudToggleIconButton @bind-Toggled="" Icon="@Icons.Material.Filled.AlarmOff" Color="@Color.Error" Title="Off" ToggledIcon="@Icons.Material.Filled.AlarmOn" ToggledColor="@Color.Success" ToggledTitle="On"/> <span>Alarm is @(AlarmOn ? "On" : "Off")</span>
@code { public bool AlarmOn { get; set; } }