From 65a79e505afd2735138ab45cafe9bfa34d77d8d7 Mon Sep 17 00:00:00 2001 From: Peace Date: Tue, 16 Jul 2024 10:46:30 +0900 Subject: [PATCH] badge --- .../Components/Layout/NavMenu.razor | 4 ++ .../Pages/Components/CompoBadge.razor | 57 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 BlazorFluentUI/Components/Pages/Components/CompoBadge.razor diff --git a/BlazorFluentUI/Components/Layout/NavMenu.razor b/BlazorFluentUI/Components/Layout/NavMenu.razor index 18551c6..9fb0fb2 100644 --- a/BlazorFluentUI/Components/Layout/NavMenu.razor +++ b/BlazorFluentUI/Components/Layout/NavMenu.razor @@ -46,6 +46,10 @@ Accordion Anchor AppBar + + Badge + CounterBadge + diff --git a/BlazorFluentUI/Components/Pages/Components/CompoBadge.razor b/BlazorFluentUI/Components/Pages/Components/CompoBadge.razor new file mode 100644 index 0000000..f68e2b0 --- /dev/null +++ b/BlazorFluentUI/Components/Pages/Components/CompoBadge.razor @@ -0,0 +1,57 @@ +@page "/compobadged" + +@rendermode RenderMode.InteractiveServer + +Badge + +The FluentBadge component is used to highlight an item and attract attention or flag status. +The FluentBadge comppmemt wraps a web component badge. + +Appearances + + + Lightweight + Accent + Neutral + Red and white + Dismiss + +

Message: @amessage?.ToString()

+
+ +Circular + + + Accent + Neutral + + + + + +With custom css for Fill and Highlight + + + Accent + Neutral + + + +In a slot + + + More options... + New! + + + +@code { + string amessage = string.Empty; +}