Default Light
MgLibrary
Overview
Installation
Buttons
Cards
Charts
Codes
Data Grids
Dropdowns
Editors
Headers & Animations
Icons
Indicators
Inputs
Lists
Modals
Menus
Panels
Pills & Chips
Scheduling
Tabs
Time Line
Trees
Customization

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

MgAutoComplete

A 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.
An unhandled error has occurred. Reload 🗙