@page "/" <p> <MatTextField @bind-Value="MyString4" Label="Fullwidth Outline Bug" FullWidth="true" Outlined="true"></MatTextField> </p> <p> <MatTextField @bind-Value="MyString4" Label="Not full width" Outlined="true"></MatTextField> </p> @code { public string MyString4 { get => _myString4; set { _myString4 = value; this.StateHasChanged(); } } private string _myString4; }
namespace BlazorFiddleProject { using Microsoft.AspNetCore.Components.Builder; using Microsoft.Extensions.DependencyInjection; public class Startup { public void ConfigureServices(IServiceCollection services) { } public void Configure(IComponentsApplicationBuilder app) { app.AddComponent<App>("app"); } } }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width"> <title>BlazorFiddleProject</title> <script src="_content/MatBlazor/dist/matBlazor.js"></script> <style> app { } </style> <script type="text/javascript"> </script> </head> <body> <app>Loading...</app> <script src="_framework/blazor.webassembly.js"></script> </body> </html>

Add component

BlazorFiddle was updated from Blazor 0.7 to .NET 6.0. Your old source code could not work. You need to upgrade to latest.