Avoids spacing for children inside a spacing container.


When using space, you sometimes want certain children to not contribute to spacing. Use Unspaced to achieve this:

import { Text, Unspaced, YStack } from 'tamagui'
export default () => (
<YStack position="relative" space>
{/* spaced elements here */}
{/* avoids extra space at end: */}
<Text position="absolute">Some absolute positoned text</Text>

If you want the item to be visually hidden, use VisuallyHidden instead, which avoids spacing as well as hiding the contents in an accessible manner.