Add MudJustifiedText component with justified text alignment

This commit is contained in:
Thorsten Sommer 2024-09-08 16:24:22 +02:00
parent 235e9cce77
commit f0c6613521
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -0,0 +1,16 @@
namespace AIStudio.Components;
public class MudJustifiedText : MudText
{
#region Overrides of ComponentBase
protected override async Task OnInitializedAsync()
{
this.Align = Align.Justify;
this.Style = "hyphens: auto; word-break: auto-phrase;";
await base.OnInitializedAsync();
}
#endregion
}