Select
Select
Displays a list of options for the user to pick from—triggered by a button.
Basic Select
A simple select with a list of options.
Grouped Options
Organize related items into labeled groups.
Scrollable Long List
Handle many options with automatic scrolling (max-h-60).
Generic Type Support
Select component supports generic types (int, enum, custom types).
API Reference
Component parameters and their types.
| Prop | Type | Default | Description |
|---|---|---|---|
| TValue | generic | - | The value type (string, int, enum, etc.). |
| Value | @bind-Value / TValue? | — | The selected value. |
| Class | string? | — | Additional CSS classes applied to the root element. |
| Disabled | bool | false | Disables the select. |