From 668beccdd7ae7058e5933c093c8036b2b104d646 Mon Sep 17 00:00:00 2001 From: Peace Date: Fri, 26 Jul 2024 15:38:48 +0900 Subject: [PATCH] message bar --- .../Components/Layout/MainLayout.razor | 2 + .../Pages/Components/CompoMessageBar.razor | 42 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/BlazorFluentUI/Components/Layout/MainLayout.razor b/BlazorFluentUI/Components/Layout/MainLayout.razor index db261da..45ac922 100644 --- a/BlazorFluentUI/Components/Layout/MainLayout.razor +++ b/BlazorFluentUI/Components/Layout/MainLayout.razor @@ -2,6 +2,8 @@ @inject IHostEnvironment HostEnvironment +@rendermode RenderMode.InteractiveServer + BlazorFluentUI diff --git a/BlazorFluentUI/Components/Pages/Components/CompoMessageBar.razor b/BlazorFluentUI/Components/Pages/Components/CompoMessageBar.razor index 9383bdc..fd0aec0 100644 --- a/BlazorFluentUI/Components/Pages/Components/CompoMessageBar.razor +++ b/BlazorFluentUI/Components/Pages/Components/CompoMessageBar.razor @@ -51,6 +51,48 @@ +

Simple message

+ + +
Default
+ + MessageBar can provide information to the user with actionable insights. + +
Success
+ + MessageBar can provide information to the user with actionable insights. + +
Warning
+ + MessageBar can provide information to the user with actionable insights. + +
Info
+ + MessageBar can provide information to the user with actionable insights. + +
Error
+ + MessageBar can provide information to the user with actionable insights. + +
Custom
+ + MessageBar can provide information to the user with actionable insights. + +
+
+ +

Simple notification

+ + + Successfully operated. 'Blazor-FluentUI.razor' + + + @code { int ecounter = 0; async Task AddInTopBar()