HStack
This component is inherited from Stack
See also: CHStack, CVStack, VStack
HStack is a specialized, shorthand version for the regular Stack component with a horizontal orientation.
<App>
<HStack>
<Stack height="32px" width="32px" backgroundColor="red" />
<Stack height="32px" width="32px" backgroundColor="blue" />
<Stack height="32px" width="32px" backgroundColor="green" />
</HStack>
</App>Example: HStack
<App>
<HStack>
<Stack height="32px" width="32px" backgroundColor="red" />
<Stack height="32px" width="32px" backgroundColor="blue" />
<Stack height="32px" width="32px" backgroundColor="green" />
</HStack>
</App>You cannot change the orientation of
HStackfrom horizontal to vertical by setting theorientationprop, as the engine ignores that setting.