BPT

Numeric Input

The BptNumericInput component provides culture-aware numeric input with validation for integers, decimals, currency, and percentages.

Numeric Input Parameters

Formatting

Range

Symbols

Display
Live Demo
Formatted: 1 234,56

Current value: 1234.56

Event Log

No events yet. Interact with the input above.

Current Configuration
📋 [+]
<BptNumericInput @bind-Value="amount"
                Label="Price"
                ShowFormattedPreview="true"
                OnValueEntered="HandleValueEntered" />

@code {
    private decimal amount = 1234.56m;

    private void HandleValueEntered(decimal value)
    {
        Console.WriteLine($"Value entered: {value}");
    }
}
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.