# Row

- **Section:** Components
- **URL:** https://refast.fastapicloud.dev/docs/components/row
- **Markdown:** https://refast.fastapicloud.dev/docs/components/row.md
- **Source:** https://github.com/idling-mind/refast-docs/blob/main/docs/pages/components/layout/row.py
- **Live examples:** the widgets on this page need a browser; open the URL above to try them.
- **Applies to:** refast 0.12.2

Horizontal flex container (`flex flex-row`) for arranging children side by side.

```python
from refast.components import Row

Row(
    children=[Button("Save"), Button("Cancel", variant="outline")],
    justify="end",
    align="center",
    gap=2,
)
```

## Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `children` | `list \| Component \| None` | `None` | Child components |
| `justify` | `"start" \| "end" \| "center" \| "between" \| "around" \| "evenly"` | `"start"` | justify-content |
| `align` | `"start" \| "end" \| "center" \| "stretch" \| "baseline"` | `"start"` | align-items |
| `gap` | `int` | `2` | Gap between children (Tailwind spacing unit) |
| `wrap` | `bool` | `False` | Whether children wrap |
| `id` | `str \| None` | `None` | Unique element ID |
| `class_name` | `str` | `""` | Extra Tailwind classes |

## Examples

```python
# Spaced action bar
Row(
    justify="between",
    align="center",
    children=[
        Heading("Page Title", level=2),
        Row(gap=2, children=[Button("New"), Button("Settings", variant="ghost")]),
    ],
)

# Wrapping tag list
Row(
    wrap=True,
    gap=2,
    children=[Badge(children=[tag]) for tag in tags],
)
```

---

Part of the Refast documentation: [all pages](https://refast.fastapicloud.dev/llms.txt), [everything on one page](https://refast.fastapicloud.dev/llms-full.txt), [search](https://refast.fastapicloud.dev/api/search?q=save_prop).
