mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 23:49:06 +00:00
22 lines
541 B
C#
22 lines
541 B
C#
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); |