Files
HopFrame/src/HopFrame.Web/Components/Components/Card.razor
Leon Hoppe ff2634ff41
All checks were successful
HopFrame CI / build (push) Successful in 44s
HopFrame CI / test (push) Successful in 52s
Started working on frontend
2026-02-25 16:33:46 +01:00

33 lines
835 B
Plaintext

<MudCard Style="width: 350px; height: 200px">
<MudCardHeader>
<CardHeaderAvatar>
<MudIcon Icon="@Icon" Style="margin: auto" />
</CardHeaderAvatar>
<CardHeaderContent>
<MudText Typo="Typo.h6">@Title</MudText>
</CardHeaderContent>
</MudCardHeader>
<MudCardContent>
<MudText>@Description</MudText>
</MudCardContent>
<MudCardActions>
<MudButton Href="@Href">Open</MudButton>
</MudCardActions>
</MudCard>
@code {
[Parameter]
public required string Title { get; set; }
[Parameter]
public string? Subtitle { get; set; }
[Parameter]
public string? Description { get; set; }
[Parameter]
public required string Href { get; set; }
[Parameter]
public required string Icon { get; set; }
}