diff --git a/src/blazor/admin/BootstrapAdmin.Web/Components/AdminAlert.razor b/src/blazor/admin/BootstrapAdmin.Web/Components/AdminAlert.razor index fcd94edc..06702a9b 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Components/AdminAlert.razor +++ b/src/blazor/admin/BootstrapAdmin.Web/Components/AdminAlert.razor @@ -1,3 +1,12 @@  - @Text + + @if (ChildContent != null) + { + @ChildContent + } + else + { + @Text + } + diff --git a/src/blazor/admin/BootstrapAdmin.Web/Components/AdminAlert.razor.cs b/src/blazor/admin/BootstrapAdmin.Web/Components/AdminAlert.razor.cs index 5f47fd2a..4f40c4b5 100644 --- a/src/blazor/admin/BootstrapAdmin.Web/Components/AdminAlert.razor.cs +++ b/src/blazor/admin/BootstrapAdmin.Web/Components/AdminAlert.razor.cs @@ -7,6 +7,12 @@ public partial class AdminAlert [Parameter] public string? Text { get; set; } + [Parameter] + public RenderFragment? ChildContent { get; set; } + + [Parameter] + public Color Color { get; set; } = Color.Danger; + private bool IsDemo { get; set; } [Inject]