Lists
Flexible list containers for displaying collections of items, supporting icons, badges, and custom templates.
Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.
Standard List
MgListContainerA simple container for a list of items with support for selection events and styling.
Templated List
MgListTemplateA powerful generic list component that allows you to define custom rendering for each item.
API Reference
MgListContainer
| Property | Type | Default | Description |
|---|---|---|---|
| ItemChanged | EventCallback<MgListItem> | - | Triggered when a list item is clicked. |
MgListTemplate
| Property | Type | Default | Description |
|---|---|---|---|
| Items | IEnumerable<TItem> | null | The collection of items to render. |
| ItemTemplate | RenderFragment<TItem> | null | Custom template for each item. |