BPT

Dropdown

BptDropdown

The BptDropdown component provides a searchable dropdown selector with keyboard navigation, filtering support, clear button, and configurable placeholder text.

Dropdown Parameters

Value: (none)

Current Configuration
📋
<BptDropdown @bind-Value="selectedValue"
             Items="countries"
             HideScrollbar="true"
             OnSelectionChanged="HandleSelectionChanged" />

@code {
    private string selectedValue = "";

    private List<string> countries = new()
    {
        "Norway", "Sweden", "Denmark", "Finland", "Iceland"
    };

    private void HandleSelectionChanged(string value)
    {
        Console.WriteLine($"Selected: {value}");
    }
}
Related learning

See the Form Controls tutorial for a step-by-step walkthrough.

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.