Stack components in one dimesion.
Last updated 22 days ago
Was this helpful?
The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.
Horizontally stacked items.
New-UDStack -Content { New-UDPaper -Content { "Item 1" } -Elevation 3 New-UDPaper -Content { "Item 2" } -Elevation 3 New-UDPaper -Content { "Item 3" } -Elevation 3 } -Spacing 2
Vertically stacked items.
New-UDStack -Content { New-UDPaper -Content { "Item 1" } -Elevation 3 New-UDPaper -Content { "Item 2" } -Elevation 3 New-UDPaper -Content { "Item 3" } -Elevation 3 } -Spacing 2 -Direction 'column'