functions
ColumnsVCentered| modified | Sunday 25 January 2026 |
|---|
Category: Layouts
File: layouts.go
Package: ui
1func ColumnsVCentered(children ...layout.FlexChild) W
ColumnsVCentered arranges flex children horizontally with vertical centering.
Like Columns, but all children are vertically centered (middle alignment).
Example:
layout := ColumnsVCentered(
Rigid(Icon(someIcon, RED)),
Flexed(1, Label("Centered text")),
)
Useful for aligning icons with text or creating balanced horizontal layouts.
1{
2 layout := ColumnsVCentered(
3 Rigid(IconCheckbox),
4 Flexed(1, Label("Centered text")),
5 )
6 _ = layout
7}

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