VStack
Arranges child views in a vertical column from top to bottom — the foundational root and vertical grouping container for native Deskset widgets.
Signature#
SIGNATURE
<VStack spacing={8} alignment="leading">
<Text fontWeight="semibold">Title</Text>
<Text color="theme.secondary">
Subtitle
</Text>
<Badge text="Active"
color="theme.accent" />
</VStack>
VStack · leading · 8pt
Title
Subtitle
Active
Props#
Inherits all StyleProps, with these key layout attributes:
spacingnumberOptional- Vertical gap in points between adjacent children.
alignmentstringDefault "center"- Horizontal cross-axis alignment:
"leading","center", or"trailing". paddingnumber | objectOptional- Inner padding in points (e.g.
16or{ horizontal: 16, vertical: 12 }). maxWidthboolean | numberOptional- Pass
trueto fill available width, or a numeric max width in points. maxHeightboolean | numberOptional- Pass
trueto fill available height, or a numeric max height in points.
Example: Horizontal Alignment Modes#
TSX
<HStack spacing={12}>
<VStack alignment="leading" spacing={6}>
<Box width={46} height={9} />
<Box width={28} height={9} />
</VStack>
<VStack alignment="center" spacing={6}>
<Box width={46} height={9} />
<Box width={28} height={9} />
</VStack>
<VStack alignment="trailing" spacing={6}>
<Box width={46} height={9} />
<Box width={28} height={9} />
</VStack>
</HStack>
leading / center / trailing