functions

Rows
Edited: Sunday 25 January 2026

Rows

Category: Layouts
File: layouts.go
Package: ui

Signature

1func Rows(children ...layout.FlexChild) W

Description

Rows arranges flex children vertically in a column layout.
Children can be Rigid (fixed size) or Flexed (proportional space).

Example:

layout := Rows(
    Rigid(Label("Header")),
    Flexed(1, Label("Content")),
    Rigid(Label("Footer")),
)

Flexed children share remaining space proportionally by their weight.

Examples

Rows

1{
2	layout := Rows(
3		Rigid(Label("Header")),
4		Flexed(1, Label("Content")),
5		Rigid(Label("Footer")),
6	)
7	_ = layout
8}

Example Output


This documentation is auto-generated. To update, run make docs

Backlinks