New-UDStack
Synopsis
The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
Syntax
New-UDStack [[-Id] <String>] [-Children] <ScriptBlock> [[-Divider] <ScriptBlock>] [[-Spacing] <Int32>] [[-Direction] <String>] [-FullWidth] [[-AlignItems] <String>] [[-JustifyContent] <String>] [<CommonParameters>]Description
Stack is concerned with one-dimensional layouts, while Grid handles two-dimensional layouts. The default direction is column which stacks children vertically.
Parameters
-Id
The ID of this component.
Required? false
Position? 1
Default value ([Guid]::NewGuid())
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Children
The children to stack.
-Divider
An optional divider component.
-Spacing
The spacing between the items.
-Direction
The stack direction. The default direction is column which stacks children vertically. Valid values are row, column, row-reverse, and column-reverse.
-FullWidth
If set, the stack will take up the full width of its container.
-AlignItems
Defines the align-items style property. It's applied for all screen sizes. Valid values are flex-start, flex-end, center, stretch, and baseline.
-JustifyContent
Defines the justify-content style property. It's applied for all screen sizes. Valid values are flex-start, flex-end, center, space-between, space-around, and space-evenly.
Common parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Basic Stack
A basic stack.
Example 2: Direction
A stack in a column direction.
Example 3: Row Reverse
A row reverse stack.
Example 4: Alignment
A center stack.
Example 5: Divider
A stack with a divider.
Example 6: Justify Content
A stack with justify content.
Last updated
Was this helpful?