@Title
@@ -14,9 +15,35 @@
@code {
- [Parameter]
- public string Title { get; set; }
+ private string containerCss = "";
+ private string innerContainerCss = "";
+
+ [Parameter] public string? Title { get; set; }
+
+ [Parameter] public string ContainerCss { get; set; } = "text-gray-200 bg-brand-900 body-font border-b border-brand-600";
+
+ [Parameter] public Accent Accent { get; set; } = Accent.Brand;
+
+ [Parameter] public PureSize Height { get; set; } = PureSize.Medium;
+
+ protected override void BuildCss()
+ {
+ containerCss = Accent switch
+ {
+ Accent.Default => "text-gray-400 bg-gray-900 body-font border-b border-slate-600",
+ Accent.Brand => "text-gray-200 bg-brand-900 body-font border-b border-brand-600",
+ _ => ""
+ };
+
+ innerContainerCss = Height switch
+ {
+ PureSize.ExtraSmall => "px-5 py-1",
+ PureSize.Small => "px-5 py-2",
+ PureSize.Medium => "px-5 py-3",
+ PureSize.Large => "px-5 py-5",
+ PureSize.ExtraLarge => "px-5 py-6",
+ _ => ""
+ };
+ }
- [Parameter]
- public RenderFragment? ChildContent { get; set; }
}