Table of Contents

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

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Justify

Defines the distribution of children along the main axis within a MudStack component.

[Parameter]
[Category("Behavior")]
public Justify Justify { get; set; }

Property Value

Justify

Spacing

The gap between items, measured in increments of 4px.

[Parameter]
[Category("Behavior")]
public int Spacing { get; set; }

Property Value

int

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

See Also