AI-Studio/app/MindWork AI Studio/Components/ExpansionPanel.razor.cs

24 lines
581 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Components;
2024-08-21 06:30:01 +00:00
namespace AIStudio.Components;
public partial class ExpansionPanel : ComponentBase
{
[Parameter]
public string HeaderIcon { get; set; } = Icons.Material.Filled.BugReport;
[Parameter]
public Size IconSize { get; set; } = Size.Medium;
[Parameter]
public Color IconColor { get; set; } = Color.Primary;
[Parameter]
public string HeaderText { get; set; } = "n/a";
[Parameter]
public RenderFragment? ChildContent { get; set; }
[Parameter]
public bool IsExpanded { get; set; }
}