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

Form Field

Floating label inputs and examples.

Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.

Form Field

MgFormField

A modern, floating-label input field that provides a more interactive and visually appealing form experience.

API Reference

MgFormField

Property Type Default Description
DisplayText string "" Floating label text for the field.
CurrentValue string "" Current value of the input; bind for two-way updates.
FieldValueChanged EventCallback<string> - Callback when the input value changes.
An unhandled error has occurred. Reload 🗙