Select
FreeDrop-down for choosing one item. TValue can be any type, including your own records.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
ChildContent | RenderFragment | Content rendered inside the component. |
Class | string | Extra CSS classes added to the root element. |
Disabled | bool | Disables interaction. |
DisplayName | string | Name used in validation messages. |
GroupBy | Func<string, string> | Returns the group heading of an item (native optgroup, or headings in the searchable list). |
HelperText | string | Hint shown below the field. |
Items | IEnumerable<string> | The options to choose from. |
ItemText | Func<string, string> | Converts an item to its display text (defaults to ToString()). |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
Placeholder | string | Shown in the searchable field while nothing is chosen. |
ReadOnly | bool | Shows the value but does not allow changes. |
Searchable | bool | Replaces the native list with a searchable drop-down. |
Style | string | Inline style added to the root element. |
Value | string | Current value. Use with @bind-Value. |
Events
| Event | Type | Description |
|---|---|---|
ValueChanged | EventCallback<string> | Raised when the value changes. |
Package
Select is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3