Skip to content
LIST SELECTION · FREE

Select

Choose one item from a drop-down, for any type of value.

The classic drop-down for choosing one item, and it works with any type of value, including your own records, not just text.

Why it helps

  • Any item type as the value
  • Groups and search options
  • Works with EditForm

Where it fits

  • Country and role pickers
  • Choosing a record
  • Settings
Select control in a RayCraft page

Example

<Select @bind-Value="_fruit" Items="_fruits" Label="Fruit" />
<span>Selected: @_fruit</span>

@code {
    private string _fruit = "Apple";
    private readonly string[] _fruits = ["Apple", "Banana", "Cherry"];
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Included in RayCraft Free. Working examples are in the GitHub repository (MIT); it holds example and demo code, not the library code.

All controls ยท Documentation