Spaces:
Running
Running
File size: 1,207 Bytes
917b070 481309b 917b070 481309b 917b070 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <div class="@CardClass">
<div class="flex items-start justify-between gap-4">
<div>
<h3 class="@TitleClass">@Title</h3>
@if (!string.IsNullOrWhiteSpace(Subtitle))
{
<p class="mt-1 text-sm text-slate-500 dark:text-slate-400">@Subtitle</p>
}
</div>
@if (Actions is not null)
{
<div class="shrink-0">
@Actions
</div>
}
</div>
<div class="@BodyClass">
@ChildContent
</div>
</div>
@code {
[Parameter, EditorRequired] public string Title { get; set; } = string.Empty;
[Parameter] public string? Subtitle { get; set; }
[Parameter] public string CardClass { get; set; } = "rounded-xl border border-slate-200 bg-white p-6 text-slate-900 shadow-sm shadow-slate-200/60 dark:border-slate-800 dark:bg-slate-900 dark:text-slate-100";
[Parameter] public string TitleClass { get; set; } = "text-xl font-bold text-slate-900 dark:text-slate-50";
[Parameter] public string BodyClass { get; set; } = "mt-6";
[Parameter] public RenderFragment? Actions { get; set; }
[Parameter] public RenderFragment? ChildContent { get; set; }
}
|