Refactor components (#80)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-08-21 08:30:01 +02:00
1 parent a18cb22263
commit 1d1af91f3e
137 files changed
+220 -220

No files matched your search

@@ -0,0 +1,22 @@
using Microsoft.AspNetCore.Components;
namespace AIStudio.Components;
public partial class MudTextList : ComponentBase
{
[Parameter]
public bool Clickable { get; set; }
[Parameter]
public IList<TextItem> Items { get; set; } = [];
[Parameter]
public string Icon { get; set; } = Icons.Material.Filled.CheckCircle;
[Parameter]
public string Class { get; set; } = "";
private string Classes => $"mud-text-list {this.Class}";
}
public readonly record struct TextItem(string Header, string Text);