Class MudStack
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A component for aligning child items horizontally or vertically.
public class MudStack : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudStack
- Implements
- Inherited Members
- Extension Methods
Constructors
MudStack()
public MudStack()
Properties
AlignItems
Defines the vertical alignment of child items.
[Parameter]
[Category("Behavior")]
public AlignItems? AlignItems { get; set; }
Property Value
Remarks
Defaults to null
.
ChildContent
The content within this component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Justify
Defines the distribution of child items.
[Parameter]
[Category("Behavior")]
public Justify? Justify { get; set; }
Property Value
Remarks
Defaults to null
.
Reverse
Reverses the order of items.
[Parameter]
[Category("Behavior")]
public bool Reverse { get; set; }
Property Value
Remarks
Defaults to false
.
When true
, items will be reversed.
Row
Displays items horizontally.
[Parameter]
[Category("Behavior")]
public bool Row { get; set; }
Property Value
Remarks
Defaults to false
.
When true
, items will be displayed horizontally. When false
, items are displayed vertically.
Spacing
The gap between items in increments of 4px
.
[Parameter]
[Category("Behavior")]
public int Spacing { get; set; }
Property Value
Remarks
Defaults to 3 in Spacing.
Maximum is 20 (80px
).
StretchItems
Defines the stretching behaviour of children along the main axis within a MudStack component.
[Parameter]
[Category("Behavior")]
public StretchItems? StretchItems { get; set; }
Property Value
Remarks
Defaults to null
.
Wrap
Controls how items are wrapped.
[Parameter]
[Category("Behavior")]
public Wrap? Wrap { get; set; }
Property Value
- Wrap?
Remarks
Defaults to null
.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder