Class MudGrid
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A component for organizing the layout of page content.
public class MudGrid : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudGrid
- Implements
- Inherited Members
- Extension Methods
Constructors
MudGrid()
public MudGrid()
Properties
ChildContent
Child content of the component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Justify
Defines the distribution of children along the main axis within a MudStack component.
[Parameter]
[Category("Behavior")]
public Justify Justify { get; set; }
Property Value
Spacing
The gap between items, measured in increments of 4px
.
[Parameter]
[Category("Behavior")]
public int Spacing { get; set; }
Property Value
Remarks
Defaults to 6 in Spacing.
Maximum is 20.
The increment was halved in v7, so the default is now 6 instead of 3.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder