From f0eaead698ac9988fe3c72d69d9e87b82766c4a3 Mon Sep 17 00:00:00 2001 From: Peace Date: Tue, 16 Jul 2024 13:59:36 +0900 Subject: [PATCH] button --- .../Components/Layout/NavMenu.razor | 3 + .../Pages/Components/CompoButton.razor | 59 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 BlazorFluentUI/Components/Pages/Components/CompoButton.razor diff --git a/BlazorFluentUI/Components/Layout/NavMenu.razor b/BlazorFluentUI/Components/Layout/NavMenu.razor index 7fc50e0..ff51515 100644 --- a/BlazorFluentUI/Components/Layout/NavMenu.razor +++ b/BlazorFluentUI/Components/Layout/NavMenu.razor @@ -52,6 +52,9 @@ PresenceBadge Breadcrumb + + Button + diff --git a/BlazorFluentUI/Components/Pages/Components/CompoButton.razor b/BlazorFluentUI/Components/Pages/Components/CompoButton.razor new file mode 100644 index 0000000..3b3ad9e --- /dev/null +++ b/BlazorFluentUI/Components/Pages/Components/CompoButton.razor @@ -0,0 +1,59 @@ +@page "/compobutton" + +@rendermode RenderMode.InteractiveServer + +Button + +The FluentButton component wraps a web HTML element of a button. + +Appearances + + + Default + Neutral + Accent + Outline + Stealth + + Loading + + + + +With Icons + + + + + + + Button + + + Button + + +
Loading
+ + + Button + + + Button + + +
+
+ +@code { + bool loading = false; + + async Task StartLoadingAsync() + { + loading = true; + await Task.Delay(2000); + loading = false; + } +}