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