# HStack
URL: /lynx/foundation/layout/h-stack
Source: https://github.com/daangn/seed-design/blob/dev/docs/content/lynx/foundation/layout/h-stack.mdx
HStack component is a layout component in Lynx that stacks child elements horizontally.
It is recommended to build layouts using the zero-runtime styling library you are using.
See the [Styling Guide](/lynx/getting-started/styling) for reasons and alternative examples.
## Installation
- npm: npm install @seed-design/lynx-react @seed-design/lynx-css
- pnpm: pnpm add @seed-design/lynx-react @seed-design/lynx-css
- yarn: yarn add @seed-design/lynx-react @seed-design/lynx-css
- bun: bun add @seed-design/lynx-react @seed-design/lynx-css
## Usage
```tsx
import { Box, HStack, Text } from "@seed-design/lynx-react";
export function App() {
return (
A
B
);
}
```
`HStack` renders Lynx native `` directly and applies `display="flex"` and `flexDirection="row"` by default. Since it does not compose `Box` internally, it reduces the number of primitive component layers in repeated rendering.
## Props
## Layout Aliases
`HStack` provides the same aliases as `VStack`.
| Prop | Applied style |
| --------- | ---------------- |
| `align` | `alignItems` |
| `justify` | `justifyContent` |
| `wrap` | `flexWrap` |
| `grow` | `flexGrow` |
| `shrink` | `flexShrink` |
Use `wrap` when line wrapping is needed in the horizontal direction.
```tsx
chip
chip
```
## Differences from Web Version
Lynx `HStack` has the following differences from React `HStack`:
- Does not support `as` or `asChild`. Always renders Lynx native ``.
- Does not provide the deprecated `Stack` alias. Lynx explicitly uses `VStack` / `HStack`.
- Unsupported StyleProps are not exposed, same as in `Box`.