RayCraftDocs
v1.0.3 raycraft.dev
On this page

Select

Free

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

Example

Select control

Parameters

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
GroupByFunc<string, string>Returns the group heading of an item (native optgroup, or headings in the searchable list).
HelperTextstringHint shown below the field.
ItemsIEnumerable<string>The options to choose from.
ItemTextFunc<string, string>Converts an item to its display text (defaults to ToString()).
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
PlaceholderstringShown in the searchable field while nothing is chosen.
ReadOnlyboolShows the value but does not allow changes.
SearchableboolReplaces the native list with a searchable drop-down.
StylestringInline style added to the root element.
ValuestringCurrent value. Use with @bind-Value.

Events

EventTypeDescription
ValueChangedEventCallback<string>Raised when the value changes.

Package

Select is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.