A stack/flexbox implementation for Blazor based on React FluentUI's Stack component which itself is based on WPF's StackPanel.
Demo Site: https://blazorstack.dev/
BlazorStack relies on BlazorStyled to render dynamic styles. Please follow the install instructions for that library when using BlazorStack.
builder.Services.AddBlazorStyled();services.AddBlazorStyled();@using BlazorStack<Stack
Horizontal
Wrap
HorizontalAlignment="Alignment.Start"
VerticalAlignment="Alignment.Start"
HorizontalGap="10"
VerticalGap="20"
>
@for(var i = 0; i < 10; i++) {
<div>@i</div>
}
</Stack>HorizontalDefines whether to render Stack children horizontally.WrapDefines whether Stack children should wrap onto multiple rows or columns when they are about to overflow the size of the Stack.HorizontalAlignmentDefines how to align Stack children horizontally (along the x-axis).VerticalAlignmentDefines how to align Stack children horizontally (along the y-axis).HorizontalGapDefines the column spacing between Stack children.VerticalGapDefines the row spacing between Stack children.GapDefines the spacing between Stack children.MaxHeightDefines the maximum height that the Stack can take.MaxWidthDefines the maximum width that the Stack can take.MinHeightDefines the minimum height that the Stack can take.MinWidthDefines the minimum width that the Stack can take.ReverseDefines whether to render Stack children in the opposite direction (bottom-to-top if it's a vertical Stack and right-to-left if it's a horizontal Stack).VerticalFillDefines whether the Stack should take up 100% of the height of its parent.