2024-05-28 18:46:44 +00:00
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
2024-08-21 06:30:01 +00:00
|
|
|
namespace AIStudio.Components;
|
2024-05-28 18:46:44 +00:00
|
|
|
|
|
|
|
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);
|