diff --git a/BlazorFluentUI/Components/Layout/NavMenu.razor b/BlazorFluentUI/Components/Layout/NavMenu.razor index b7794de..ecb5197 100644 --- a/BlazorFluentUI/Components/Layout/NavMenu.razor +++ b/BlazorFluentUI/Components/Layout/NavMenu.razor @@ -19,6 +19,7 @@ MainLayout Spacer Splitter + Stack diff --git a/BlazorFluentUI/Components/Pages/LayoutStack.razor b/BlazorFluentUI/Components/Pages/LayoutStack.razor new file mode 100644 index 0000000..6636d2e --- /dev/null +++ b/BlazorFluentUI/Components/Pages/LayoutStack.razor @@ -0,0 +1,74 @@ +@page "/layoutstack" +@using Microsoft.FluentUI.AspNetCore.Components.Extensions + +@rendermode RenderMode.InteractiveServer + +Stack + + + The FluentStack is a container-type component that can be used to arrange its child components in horizontal or vertical stack. + + +Characteristics + + 1. Orientation: The child components are controlled via the Horizontal(default) or Vertical. + 2. Alignment: The child components are controlled via the HorizontalAlignment and VerticalAlignment. + 3. Spacing: The child components are controlled via the HorizontalGap and VerticalGap. + + +Wrapping + + Wrap: Determines if childs overflow the FluentStack container or wrap around it via true or false. + + + + Alignment of the stack contents + +
+ Orientation + +
+
+ Horizontal + +
+
+ Vertical + +
+
+ +
+
+ +
Result
+ +
Item1
+
Item2
+
+

Item3-1

+

Item3-2

+
+
Item4
+
Item5
+
+

Item4-1

+

Item4-2

+
+
+
+ +@code { + Orientation orientation; + HorizontalAlignment horizontalAlignment; + VerticalAlignment verticalAlignment; + bool wrap; +}