Library Blazor Components DropDownList DropDownList Items

Items

Specifies list of items to be shown inside the component.

razor
[Parameter]
public IEnumerable<T>? Items { get; set; }

Example

razor
<DropDownList Items="@Products" />

@code {
    private List<Product> Products = new();
}

Sign in