mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 10:32:57 +00:00
Add the titan component with customizable properties for name, acknowledgment, URL, type, and image source
This commit is contained in:
parent
9fa0f95611
commit
f286d5d500
16
app/MindWork AI Studio/Components/Titan.razor
Normal file
16
app/MindWork AI Studio/Components/Titan.razor
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<MudListItem T="string" Href="@this.URL" Target="_blank">
|
||||||
|
<AvatarContent>
|
||||||
|
<MudAvatar Variant="Variant.Filled" Size="Size.Large" Style="background-color: white;" Class="mr-6">
|
||||||
|
<MudImage Src="@this.ImageSrc"/>
|
||||||
|
</MudAvatar>
|
||||||
|
</AvatarContent>
|
||||||
|
<ChildContent>
|
||||||
|
<MudText Typo="Typo.h6" Inline="@true">
|
||||||
|
@this.Name
|
||||||
|
</MudText>
|
||||||
|
|
||||||
|
<MudText Typo="Typo.body1" Class="ml-3" Inline="@true">
|
||||||
|
@this.Acknowledgment
|
||||||
|
</MudText>
|
||||||
|
</ChildContent>
|
||||||
|
</MudListItem>
|
21
app/MindWork AI Studio/Components/Titan.razor.cs
Normal file
21
app/MindWork AI Studio/Components/Titan.razor.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
using Microsoft.AspNetCore.Components;
|
||||||
|
|
||||||
|
namespace AIStudio.Components;
|
||||||
|
|
||||||
|
public partial class Titan : ComponentBase
|
||||||
|
{
|
||||||
|
[Parameter]
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public string Acknowledgment { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public string? URL { get; set; }
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public SupporterType Type { get; set; }
|
||||||
|
|
||||||
|
[Parameter]
|
||||||
|
public string? ImageSrc { get; set; }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user