Add the titan component with customizable properties for name, acknowledgment, URL, type, and image source

This commit is contained in:
Thorsten Sommer 2025-05-11 17:39:06 +02:00
parent 9fa0f95611
commit f286d5d500
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 37 additions and 0 deletions

View 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>

View 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; }
}