<h2 id="verticalstack-modifier-state-content">VerticalStack</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
@Composable
public fun VerticalStack(
    modifier: Modifier = Modifier,
    state: StackState = rememberStackState(),
    content: StackScope.() -> Unit,
)
```

#### Parameters

| | |
| --- | --- |
| modifier | the modifier to apply to this layout. |
| state | the state of the stack. |
| content | a block that describes the content. Inside this block you can use methods like [StackScope.item](/jetpack-compose/androidx.xr.glimmer/glimmer/interfaces/StackScope) to add a single item or [StackScope.items](/jetpack-compose/androidx.xr.glimmer/glimmer/interfaces/StackScope) to add a collection of items. |