---
title: "Row"
description: "Horizontal row; wrap for responsive."
---

> Documentation Index
> Fetch the complete documentation index at: https://gistui.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Row

```gistui
root = Row(Tag("Draft"), Tag("Review", tone:info), Tag("Live", tone:success), gap:sm, wrap)
```

## Signature

This is the line a model reads in the system prompt.

```gistui
Row(...children, gap:Gap, align:Align, justify:Justify, wrap)
```

- **Group:** Layout
- **Children:** Yes: any component or text
- **Positional arguments:** none

## Props

| Prop | Type | How to write it | Notes |
|---|---|---|---|
| `gap` | `none` · `xs` · `sm` · `md` · `lg` · `xl` | named: `gap:…` | Also accepts `small`, `medium`, `large`. |
| `align` | `start` · `center` · `end` · `stretch` · `between` | named: `align:…` |  |
| `justify` | `start` · `center` · `end` · `between` · `around` | named: `justify:…` |  |
| `wrap` | flag | bare word: `wrap` |  |

## Use your own component

Keep the name and schema, swap what is drawn. The prompt and the model's output do not change.

### React

```tsx
import { ui } from "@gistui/react/ui";

const lib = ui.extend({ Row: MyRow });
<GistUI library={lib} stream={response.body} />;
```
### Vue

```vue
<GistUI :source="answer" :components="{ Row: MyRow }" />
```
### Svelte

```svelte
<GistUI source={answer} components={{ Row: MyRow }} />
```
### Solid

```tsx
<GistUI source={answer()} components={{ Row: MyRow }} />
```
### Vanilla

```ts
import { ui } from "@gistui/vanilla/ui";

const lib = ui.extend({ Row: (ctx) => ({ el: myElement(ctx) }) });
```

See [Custom components](/docs/guides/custom-components/) for the full contract. Style hook: `[data-gistui="Row"]`.

Source: https://gistui.com/docs/components/layout/row/index.mdx
