# grid

    .grid columns:{Int} \
        alignment:{Stacked.MainAxisAlignment = Stacked.MainAxisAlignment.CENTER} \
            cross:{Stacked.CrossAxisAlignment = Stacked.CrossAxisAlignment.CENTER} \
              gap:{Size? = null} \
             vgap:{Size? = gap} \
             hgap:{Size? = gap} \
             body:{MarkdownContent}
    -> Node

Content copied to clipboard

Stacks content in a grid layout.

Each child is placed in a cell, and a row of cells ends when its cell count reaches columns.

#### Return

the new Stacked node

#### Parameters

columns

positive number of columns

alignment

- Optional

content alignment along the main axis

#### Values

- `start`
- `center`
- `end`
- `spacebetween`
- `spacearound`
- `spaceevenly`

cross

- Optional

content alignment along the cross axis

#### Values

- `start`
- `center`
- `end`
- `stretch`

gap

- Optional
- Likely named

blank space between rows and columns. If omitted, the default value is used

vgap

- Optional

blank space between rows (overrides gap for rows). If omitted, the default value is used

hgap

- Optional

blank space between columns (overrides gap for columns). If omitted, the default value is used

body

- Likely a body argument

content to stack

#### Throws

IllegalArgumentException

if columns is non-positive

#### Wiki page

stacks