mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 18:49:06 +00:00
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
<MudExpansionPanel Class="border-solid border rounded-lg" Expanded="@this.IsExpanded">
|
|
<TitleContent>
|
|
<div class="d-flex align-center">
|
|
<MudIcon Icon="@this.HeaderIcon" Size="@this.IconSize" Color="@this.IconColor" class="mr-3"/>
|
|
<MudText Typo="Typo.h6">@this.HeaderText</MudText>
|
|
@if (this.ShowEndButton)
|
|
{
|
|
<MudSpacer/>
|
|
if (!string.IsNullOrWhiteSpace(this.EndButtonTooltip))
|
|
{
|
|
<MudTooltip Text="@this.EndButtonTooltip">
|
|
<MudIconButton Icon="@this.EndButtonIcon" Color="@this.EndButtonColor" Size="Size.Medium" OnClick="async () => await this.EndButtonClickAsync()"/>
|
|
</MudTooltip>
|
|
}
|
|
else
|
|
{
|
|
<MudIconButton Icon="@this.EndButtonIcon" Color="@this.EndButtonColor" Size="Size.Medium" OnClick="async () => await this.EndButtonClickAsync()"/>
|
|
}
|
|
}
|
|
</div>
|
|
</TitleContent>
|
|
<ChildContent>
|
|
@this.ChildContent
|
|
</ChildContent>
|
|
</MudExpansionPanel> |