BPT

Switch

The BptSwitch component provides a toggle switch with draggable handle, label placement options, color support, and three size variants.

Switch Parameters

Value: False

Current Configuration
📋 [+]
<BptSwitch @bind-Value="isEnabled"
          Label="Enable notifications"
          Size="BptComponentSize.Medium"
          LabelPlacement="BptLabelPlacement.Right"
          OnClick="HandleClick" />

@code {
    private bool isEnabled = false;

    private void HandleClick(bool newValue)
    {
        Console.WriteLine($"Switched to: {newValue}");
    }
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.