Auto-Completer
Generic auto-complete examples for strings and objects.
Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.
Auto-Completer
MgAutoCompleteA powerful dropdown input that filters suggestions internally as the user types.
API Reference
MgAutoComplete
| Property | Type | Default | Description |
|---|---|---|---|
| TItem | generic | - | Type of items used by the component. |
| Items | IEnumerable<TItem> | - | Source list to search and display suggestions from. |
| DisplayProperty | string | "" | Property name to show for complex objects. |
| IdProperty | string | null | Optional id property used for value binding. |
| ItemSelected | EventCallback<TItem> or EventCallback<string> | - | Fired when a suggestion is selected. |