Spacer
Signature#
SIGNATURE
<HStack>
<Text>Left</Text>
<Spacer minLength={8} />
<Text>Right</Text>
</HStack>
Spacer · elastic gap
Props#
minLengthnumberOptional- Minimum preserved gap in points even when space is tight.
Example: Horizontal & Vertical Push#
TSX
<VStack height={104} padding={12}>
<HStack>
<Text fontWeight="bold">Progress</Text>
<Spacer minLength={8} />
<Text color="theme.accent">75%</Text>
</HStack>
<Spacer />
<HStack>
<Spacer />
<Button title="Continue"
variant="filled" />
</HStack>
</VStack>
Horizontal + Vertical Push
Progress
75%
Continue