Row

Row lays children out left to right, with controls for gaps, wrapping, flex, distribution, and semantics. Use it for toolbars, inline forms, status bars, action rows, and card footers.
Use Row when sibling order flows horizontally. Do not use it for vertical sections or large list virtualization. Those cases belong to Column and LazyColumn.

Example

use fission::prelude::*;
use fission::op::AlignItems;

fission_component! {
    pub ConnectionSummary<()> {
        props { connected: bool }
    }

    view(connection, _state, cx) {
        let spacing = &cx.view.env().theme.tokens.spacing;
    } =>
        Row(
            gap: spacing.s,
            align_items: AlignItems::Center,
            children: [
                Text(cx.tr("connection.status")),
                Text(cx.tr(if connection.connected {
                    "connection.connected"
                } else {
                    "connection.disconnected"
                })),
            ],
        )
}

Field table

Field
Type
Meaning
Notes / default behavior
id
Option<WidgetId>
Stable widget identity.
Defaults to None.
children
Vec<Widget>
Child widgets laid out from left to right.
Defaults to an empty list.
semantics
Option<Semantics>
Optional accessibility semantics wrapper.
When present, the lowered row is wrapped in a semantics node.
flex_grow
f32
How much extra space the row absorbs from its parent.
Defaults to 0.0.
flex_shrink
f32
How much the row may shrink when space is tight.
Defaults to 1.0.
gap
Option<f32>
Horizontal spacing between children.
Defaults to None.
wrap
FlexWrap
Whether children wrap onto another line.
Defaults to FlexWrap::NoWrap.
align_items
AlignItems
Cross-axis alignment, which is vertical in a row.
Defaults to AlignItems::Center.
justify_content
JustifyContent
Main-axis distribution, which is horizontal in a row.
Defaults to JustifyContent::Start.

Layout behavior

Row lowers to a horizontal flex layout. That means justify_content controls horizontal distribution and align_items controls vertical placement of each child.
When content should wrap onto more than one line, Row can do that by setting wrap, but once the layout starts to behave like a responsive flow of many items, Wrap or SimpleGrid may read more clearly.

Specific advice

Use gap for ordinary spacing and Spacer when one child should push the next child away by absorbing remaining space. That distinction makes rows easier to read.
If you only need a shorter helper surface for a simple horizontal group, use HStack.

Production checklist

•
Test long translated status copy under narrow constraints.
•
Choose wrapping deliberately; horizontal flex alone does not make a responsive toolbar.
•
Keep status meaning in text rather than colour or alignment alone.
Previous
Positioned