VStack
Renders children vertically, with consistent spacing (if specified) between them.
Usage
Code
import { createSystem } from 'frog/ui'
const { Box, VStack } = createSystem()
function Example() {
return (
<VStack gap="8" grow>
<Box backgroundColor="red" height="100%" />
<Box backgroundColor="red" height="100%" />
<Box backgroundColor="red" height="100%" />
</VStack>
)
}
VStack
Properties
alignHorizontal
Horizontally aligns the contents.
Code
<VStack
alignHorizontal="leftrightcentercenter"
grow
>
alignVertical
Vertically aligns the contents.
Code
<VStack
alignVertical="bottomtopcenterspace-betweencenter"
grow
>
gap
The space between each column.
Code
<VStack
gap="01234681012141618202224262830323436384042444648525660647280961281601922242568"
grow
>
Box
Properties
VStack
inherits the properties of Box
.