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; + } +}