Parameters
A single child component or an array of child components to arrange vertically.
Configuration options for the vertical stack.
A view that arranges its children in a vertical line.
VStack(children: Component): Component;
VStack(children: Component[]): Component;
VStack(props: { spacing?: number, alignment?: HorizontalAlignment }, children: Component[]): Component;
VStack([
Text("First"),
Text("Second"),
Text("Third")
])
VStack({ spacing: 16 }, [
Text("Title").font("headline"),
Text("Content").font("body")
])
VStack({ alignment: "leading" }, [
Text("Left aligned"),
Text("Also left aligned")
])