<div class="flex flex-col gap-2">
    <LumexSwitch @bind-Value="@_valueOne">Auto Updates</LumexSwitch>
    <p class="text-sm text-default-500">
        Selected: @_valueOne
    </p>
</div>

<div class="flex flex-col gap-2">
    <LumexSwitch Value="@_valueTwo"
                 ValueChanged="@OnValueChanged">
        Auto Updates
    </LumexSwitch>
    <p class="text-sm text-default-500">
        Selected: @_valueTwo
    </p>
</div>

@code {
    private bool _valueOne;
    private bool _valueTwo = true;

    private void OnValueChanged( bool toggled )
    {
        _valueTwo = toggled;
    }
}