@page "/layoutgrid"
@using Microsoft.FluentUI.AspNetCore.Components.Extensions
@rendermode RenderMode.InteractiveServer
Grid
The FluentGrid
component helps keeping layout consistent across various screen resolutions and sizes.
Justify
())
OptionValue="@(c => c.ToAttributeValue())"
TOption="JustifyContent"
Position="SelectPosition.Below"
@bind-SelectedOption="@justification" />
Spacing
xs="12"
xs="12" sm="6" HiddenWhen="GridItemHidden.SmAndDown"
xs="12" sm="6"
xs="6" sm="3"
xs="6" sm="3"
xs="6" sm="3"
xs="6" sm="3"
xs="3"
@message
Breakpoints
Breakpoints help you control your layout base on widows size.
Extra Small xd
<600px, Small to large phone
Small sm
<960px, Small to medium tablet
Medium md
<1280px, Large tablet to laptop
Large lg
<1920px, Desktop
Extra Large xl
<2560px, HD and 4k
Extra Extra Large xxl
=>2560px, 4k+ and ultra-wide
@code {
JustifyContent justification = JustifyContent.FlexStart;
int spacing = 3;
string message = "Message: ";
void OnBreakpointEnterHandler(GridItemSize size)
{
message = $"Message: Page size {size}";
}
}