26 lines
587 B
Plaintext
26 lines
587 B
Plaintext
<div class="@CssClass">
|
|
@if (!string.IsNullOrWhiteSpace(Title))
|
|
{
|
|
<MudText Typo="Typo.subtitle1" Class="font-weight-bold mb-1">@Title</MudText>
|
|
}
|
|
@if (!string.IsNullOrWhiteSpace(Description))
|
|
{
|
|
<MudText Typo="Typo.body2" Class="mb-2">@Description</MudText>
|
|
}
|
|
@ChildContent
|
|
</div>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public string? Title { get; set; }
|
|
|
|
[Parameter]
|
|
public string? Description { get; set; }
|
|
|
|
[Parameter]
|
|
public string CssClass { get; set; } = "";
|
|
|
|
[Parameter]
|
|
public RenderFragment? ChildContent { get; set; }
|
|
}
|