Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 876 Bytes

File metadata and controls

39 lines (27 loc) · 876 Bytes
description
Stack components in one dimesion.

Stack

The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.

Horizontal Stack

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

Vertical Stack

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'

API

  • New-UDStack