Switch
BptSwitch
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
📋
The BptSwitch component provides a toggle switch with draggable handle, label placement options, color support, and three size variants.
Value: False
<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}");
}
}