functions
Rows| modified | Sunday 25 January 2026 |
|---|
Category: Layouts
File: layouts.go
Package: ui
1func Rows(children ...layout.FlexChild) W
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.
1{
2 layout := Rows(
3 Rigid(Label("Header")),
4 Flexed(1, Label("Content")),
5 Rigid(Label("Footer")),
6 )
7 _ = layout
8}

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