functions

ColumnsVCentered
Edited: Sunday 25 January 2026

ColumnsVCentered

Category: Layouts
File: layouts.go
Package: ui

Signature

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

Description

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.

Examples

ColumnsVCentered

1{
2	layout := ColumnsVCentered(
3		Rigid(IconCheckbox),
4		Flexed(1, Label("Centered text")),
5	)
6	_ = layout
7}

Example Output


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

Backlinks